ó FRTc@s¤ddlmZmZdddd d d„Zdefd„ƒYZddddd d d„Zdefd„ƒYZddd d d „Z d efd „ƒYZ d S( iÿÿÿÿ(turllibtsixtc csÌt}d}x¹|rÇ|jd|d|d|d|d|ƒ}x|D] }|VqFW|rp|jpj|j}n|r»|dkr»t|tjƒr¦|jdƒ}nt j j |ƒ}n|j }qWdS( s< A generator function for listing keys in a bucket. tprefixtmarkert delimitertheaderst encoding_typeturlsutf-8N( tTruetNonet get_all_keyst next_markertnamet isinstanceRt text_typetencodeRtparsetunquotet is_truncated( tbucketRRRRRt more_resultstktrs((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyt bucket_listers     tBucketListResultSetcBs2eZdZddddddd„Zd„ZRS(sM A resultset for listing keys within a bucket. Uses the bucket_lister generator function and implements the iterator interface. This transparently handles the results paging from S3 so even if you have many thousands of keys within the bucket you can iterate over all keys in a reasonably efficient manner. RcCs:||_||_||_||_||_||_dS(N(RRRRRR(tselfRRRRRR((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyt__init__6s      c Cs:t|jd|jd|jd|jd|jd|jƒS(NRRRRR(RRRRRRR(R((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyt__iter__?s N(t__name__t __module__t__doc__R RR(((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyR-s c cs„t}d }xq|r|jd|d|d|d|d|ddd|ƒ} x| D] }|VqRW| j}| j}| j}qWd S( s@ A generator function for listing versions in a bucket. Rt key_markertversion_id_markerRRtmax_keysiçRN(R R tget_all_versionstnext_key_markertnext_version_id_markerR( RRRR R!RRRRR((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pytversioned_bucket_listerEs      tVersionedBucketListResultSetcBs5eZdZdddddddd„Zd„ZRS(sQ 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 S3 so even if you have many thousands of keys within the bucket you can iterate over all keys in a reasonably efficient manner. RcCsC||_||_||_||_||_||_||_dS(N(RRRR R!RR(RRRRR R!RR((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyRas      cCsCt|jd|jd|jd|jd|jd|jd|jƒS(NRRR R!RR(R&RRRR R!RR(R((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyRks     N(RRRR RR(((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyR'Xs  c csrt}d}x_|rm|jd|d|d|d|ƒ}x|D] }|Vq@W|j}|j}|j}qWdS(sI A generator function for listing multipart uploads in a bucket. R tupload_id_markerRRN(R R tget_all_multipart_uploadsR$tnext_upload_id_markerR(RR R(RRRRR((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pytmultipart_upload_listerss      tMultiPartUploadListResultSetcBs/eZdZdddddd„Zd„ZRS(sj A resultset for listing multipart uploads within a bucket. Uses the multipart_upload_lister generator function and implements the iterator interface. This transparently handles the results paging from S3 so even if you have many thousands of uploads within the bucket you can iterate over all keys in a reasonably efficient manner. RcCs1||_||_||_||_||_dS(N(RR R(RR(RRR R(RR((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyRs     c Cs1t|jd|jd|jd|jd|jƒS(NR R(RR(R+RR R(RR(R((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyR—s     N(RRRR RR(((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyR,†sN( t boto.compatRRR RtobjectRR&R'R+R,(((sH/opt/freeware/lib/python2.7/site-packages/boto/s3/bucketlistresultset.pyts