/usr/lib/python2.6/site-packages/boto/s3
NameSizeModeActions
acl.py57270644editdlrm
acl.pyc60930644editdlrm
acl.pyo60930644editdlrm
bucket.py793690644editdlrm
bucket.pyc707340644editdlrm
bucket.pyo706880644editdlrm
bucketlistresultset.py67960644editdlrm
bucketlistresultset.pyc57470644editdlrm
bucketlistresultset.pyo57470644editdlrm
bucketlogging.py31830644editdlrm
bucketlogging.pyc29060644editdlrm
bucketlogging.pyo29060644editdlrm
connection.py261920644editdlrm
connection.pyc237440644editdlrm
connection.pyo236070644editdlrm
cors.py89410644editdlrm
cors.pyc80180644editdlrm
cors.pyo80180644editdlrm
deletemarker.py20870644editdlrm
deletemarker.pyc15010644editdlrm
deletemarker.pyo15010644editdlrm
key.py823190644editdlrm
key.pyc660280644editdlrm
key.pyo660280644editdlrm
keyfile.py44270644editdlrm
keyfile.pyc50100644editdlrm
keyfile.pyo50100644editdlrm
lifecycle.py82540644editdlrm
lifecycle.pyc92330644editdlrm
lifecycle.pyo92330644editdlrm
multidelete.py47570644editdlrm
multidelete.pyc49800644editdlrm
multidelete.pyo49800644editdlrm
multipart.py120490644editdlrm
multipart.pyc119560644editdlrm
multipart.pyo119560644editdlrm
prefix.py16610644editdlrm
prefix.pyc12430644editdlrm
prefix.pyo12430644editdlrm
resumable_download_handler.py155950644editdlrm
resumable_download_handler.pyc103360644editdlrm
resumable_download_handler.pyo103360644editdlrm
tagging.py17320644editdlrm
tagging.pyc36880644editdlrm
tagging.pyo36880644editdlrm
user.py19680644editdlrm
user.pyc15140644editdlrm
user.pyo15140644editdlrm
website.py106070644editdlrm
website.pyc123110644editdlrm
website.pyo123110644editdlrm
__init__.py23450644editdlrm
__init__.pyc18070644editdlrm
__init__.pyo18070644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/s3/multipart.pyc (11956B)
Ñò Å-õSc@sŽddklZddklZddklZddkZdefd„ƒYZdefd„ƒYZ dd „Z d efd „ƒYZ dS( iÿÿÿÿ(tuser(tkey(thandlerNtCompleteMultiPartUploadcBs5eZdZdd„Zd„Zd„Zd„ZRS(sÙ Represents a completed MultiPart Upload. Contains the following useful attributes: * location - The URI of the completed upload * bucket_name - The name of the bucket in which the upload is contained * key_name - The name of the new, completed key * etag - The MD5 hash of the completed, combined upload * version_id - The version_id of the completed upload * encrypted - The value of the encryption header cCsC||_d|_d|_d|_d|_d|_d|_dS(N(tbuckettNonetlocationt bucket_nametkey_nametetagt version_idt encrypted(tselfR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt__init__-s      cCsd|i|ifS(Ns (RR(R ((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt__repr__6s cCsdS(N(R(R tnametattrst connection((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt startElement:scCs||djo ||_n_|djo ||_nE|djo ||_n+|djo ||_nt|||ƒdS(NtLocationtBuckettKeytETag(RRRR tsetattr(R RtvalueR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt endElement=s        N(t__name__t __module__t__doc__RR RRR(((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyRs    tPartcBs5eZdZdd„Zd„Zd„Zd„ZRS(s Represents a single part in a MultiPart upload. Attributes include: * part_number - The integer part number * last_modified - The last modified date of this part * etag - The MD5 hash of this part * size - The size, in bytes, of this part cCs1||_d|_d|_d|_d|_dS(N(RRt part_numbert last_modifiedR tsize(R R((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR Us     cCs't|itƒo d|iSdSdS(Ns s s (t isinstanceRtintR(R ((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR\s cCsdS(N(R(R RRR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyRbscCsˆ|djot|ƒ|_ne|djo ||_nK|djo ||_n1|djot|ƒ|_nt|||ƒdS(Nt PartNumbert LastModifiedRtSize(R"RRR R R(R RRR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyRes      N(RRRRR RRR(((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyRJs     ccsYt}d}xF|o>|id|ƒ}x|D] }|Vq/W|i}|i}qWdS(sG A generator function for listing parts of a multipart upload. N(tTrueRt get_all_partstnext_part_number_markert is_truncated(tmpuploadtpart_number_markert more_resultstparttparts((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt part_listerrs  tMultiPartUploadcBs›eZdZd d„Zd„Zd„Zd„Zd„Zd„Z d d d d„Z d e d dd d d „Z d d d d d „Z d „Zd „ZRS(s2 Represents a MultiPart Upload operation. cCsy||_d|_d|_t|_d|_d|_d|_d|_d|_ d|_ d|_ t |_ d|_dS(N(RRRRtidt initiatortownert storage_classt initiatedR+R(t max_partstFalseR)t_parts(R R((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR …s            cCs d|iS(Ns(R(R ((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR”scCs t|ƒS(N(R/(R ((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyt__iter__—scCs[d}xD|D]<}|d7}|d|i7}|d|i7}|d7}q W|d7}|S(Ns s s %d s %s s s(RR (R tsR-((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pytto_xmlšs  cCsƒ|djoti|ƒ|_|iS|djoti|ƒ|_|iS|djo$t|iƒ}|ii|ƒ|SdS(Nt InitiatortOwnerR( RtUserR2R3RRR8tappendR(R RRRR-((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR¤s   cCs|djo ||_n|djo ||_nç|djo ||_nÍ|djo ||_n³|djo ||_n™|djo ||_n|djot|ƒ|_n_|djo'|d jo t|_ qt |_ n+|d jo ||_ nt |||ƒdS( NRRtUploadIdt StorageClasstPartNumberMarkertNextPartNumberMarkertMaxPartst IsTruncatedttruet Initiated( RRR1R4R+R(R"R6R&R)R7R5R(R RRR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR±s*                   cCsØg|_d|i}|o|d|7}n|o|d|7}n|o|d|7}n|iiid|ii|id|ƒ}|iƒ}|idjo-t i ||ƒ}t i i ||ƒ|iSdS( s@ Return the uploaded parts of this MultiPart Upload. This is a lower-level method that requires you to manually page through results. To simplify this process, you can just use the object itself as an iterator and it will automatically handle all of the paging with S3. s uploadId=%ss &max-parts=%ds&part-number-marker=%ss&encoding-type=%stGETt query_argsiÈN(R8R1RRt make_requestRRtreadtstatusRt XmlHandlertxmltsaxt parseString(R R6R+t encoding_typeRItresponsetbodyth((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pyR'Ês     i c Cs†|djotdƒ‚nd|i|f} |ii|iƒ} | i|d|d|d|d|d|d td | d |ƒ| S( s_ Upload another part of this MultiPart Upload. .. note:: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage. :type fp: file :param fp: The file object you want to upload. :type part_num: int :param part_num: The number of this part. The other parameters are exactly as defined for the :class:`boto.s3.key.Key` set_contents_from_file method. :rtype: :class:`boto.s3.key.Key` or subclass :returns: The uploaded part containing the etag. is&Part numbers must be greater than zerosuploadId=%s&partNumber=%dtheaderstreplacetcbtnum_cbtmd5treduced_redundancyRIR (t ValueErrorR1Rtnew_keyRtset_contents_from_fileR7( R tfptpart_numRURVRWRXRYR RIR((s5/usr/lib/python2.6/site-packages/boto/s3/multipart.pytupload_part_from_fileäs  c CsÎ|djotdƒ‚nd|i|f}|d j o`|d j oSd||f} |iii} |d jo h}n |iƒ}| || is +(