ó
è?F[c           @   s2   d  d  d  d  d d „ Z d e f d „  ƒ  YZ d S(   t    c   	      c   s~   t  } d } xk | ry |  j d | d | d | d | d | d d ƒ } x | D] } | VqL W| j } | j } | j } q Wd S(	   s=   
    A generator function for listing versioned objects.
    t   prefixt   markert   generation_markert	   delimitert   headerst   max_keysiç  N(   t   Truet   Nonet   get_all_versionst   next_markert   next_generation_markert   is_truncated(	   t   bucketR   R   R   R   R   t   more_resultst   kt   rs(    (    s:   lib/python2.7/site-packages/boto/gs/bucketlistresultset.pyt   versioned_bucket_lister   s    					t   VersionedBucketListResultSetc           B   s2   e  Z d  Z d d d d d d d „ Z d „  Z RS(   sR  
    A resultset for listing versions within a bucket.  Uses the bucket_lister
    generator function and implements the iterator interface.  This
    transparently handles the results paging from GCS so even if you have
    many thousands of keys within the bucket you can iterate over all
    keys in a reasonably efficient manner.
    R    c         C   s:   | |  _  | |  _ | |  _ | |  _ | |  _ | |  _ d  S(   N(   R   R   R   R   R   R   (   t   selfR   R   R   R   R   R   (    (    s:   lib/python2.7/site-packages/boto/gs/bucketlistresultset.pyt   __init__2   s    					c         C   s:   t  |  j d |  j d |  j d |  j d |  j d |  j ƒS(   NR   R   R   R   R   (   R   R   R   R   R   R   R   (   R   (    (    s:   lib/python2.7/site-packages/boto/gs/bucketlistresultset.pyt   __iter__;   s
    			N(   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    s:   lib/python2.7/site-packages/boto/gs/bucketlistresultset.pyR   )   s   N(   R   R   t   objectR   (    (    (    s:   lib/python2.7/site-packages/boto/gs/bucketlistresultset.pyt   <module>   s   