/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/cors.pyo (8018B)
ั๒ ล-๕Sc@s0defd„ƒYZdefd„ƒYZdS(tCORSRulecBsMeZdZddddddd„Zd„Zd„Zd„Zd„ZRS(sŸ CORS rule for a bucket. :ivar id: A unique identifier for the rule. The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration. :ivar allowed_methods: An HTTP method that you want to allow the origin to execute. Each CORSRule must identify at least one origin and one method. Valid values are: GET|PUT|HEAD|POST|DELETE :ivar allowed_origin: An origin that you want to allow cross-domain requests from. This can contain at most one * wild character. Each CORSRule must identify at least one origin and one method. The origin value can include at most one '*' wild character. For example, "http://*.example.com". You can also specify only * as the origin value allowing all origins cross-domain access. :ivar allowed_header: Specifies which headers are allowed in a pre-flight OPTIONS request via the Access-Control-Request-Headers header. Each header name specified in the Access-Control-Request-Headers header must have a corresponding entry in the rule. Amazon S3 will send only the allowed headers in a response that were requested. This can contain at most one * wild character. :ivar max_age_seconds: The time in seconds that your browser is to cache the preflight response for the specified resource. :ivar expose_header: One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). You add one ExposeHeader element in the rule for each header. cCs–|djo g}n||_|djo g}n||_||_|djo g}n||_||_|djo g}n||_dS(N(tNonetallowed_methodtallowed_origintidtallowed_headertmax_age_secondst expose_header(tselfRRRRRR((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyt__init__>s             cCs d|iS(Ns (R(R((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyt__repr__PscCsdS(N(R(Rtnametattrst connection((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyt startElementSscCsา|djo ||_nต|djo|ii|ƒn”|djo|ii|ƒns|djo|ii|ƒnR|djot|ƒ|_n2|djo|ii|ƒnt|||ƒdS(NtIDt AllowedMethodt AllowedOrigint AllowedHeadert MaxAgeSecondst ExposeHeader( RRtappendRRtintRRtsetattr(RR tvalueR ((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyt endElementVs       c Csฺd}x|iD]}|d|7}qWx|iD]}|d|7}q2Wx|iD]}|d|7}qTWx|iD]}|d|7}qvW|io|d|i7}n|io|d|i7}n|d7}|S( Ns s!%ss!%ss!%ss%ss!%ds %ss (RRRRRR(RtsRRRR((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pytto_xmlfs&       N( t__name__t __module__t__doc__RR R RRR(((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyRs#     tCORSConfigurationcBs>eZdZd„Zd„Zd„Zddddd„ZRS(sI A container for the rules associated with a CORS configuration. cCs,|djotƒ}|i|ƒ|SdS(NR(RRR(RR R R trule((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyR}s    cCst|||ƒdS(N(R(RR RR ((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyR„scCs5d}x|D]}||iƒ7}q W|d7}|S(sv Returns a string containing the XML version of the Lifecycle configuration as defined by S3. ss(R(RRR ((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyR‡s  cCsๆt|ttfƒp |g}nt|ttfƒp |g}nt|ttfƒp$|djo g}q€|g}nt|ttfƒp$|djo g}qบ|g}nt||||||ƒ}|i|ƒdS(sา Add a rule to this CORS configuration. This only adds the rule to the local copy. To install the new rule(s) on the bucket, you need to pass this CORS config object to the set_cors method of the Bucket object. :type allowed_methods: list of str :param allowed_methods: An HTTP method that you want to allow the origin to execute. Each CORSRule must identify at least one origin and one method. Valid values are: GET|PUT|HEAD|POST|DELETE :type allowed_origin: list of str :param allowed_origin: An origin that you want to allow cross-domain requests from. This can contain at most one * wild character. Each CORSRule must identify at least one origin and one method. The origin value can include at most one '*' wild character. For example, "http://*.example.com". You can also specify only * as the origin value allowing all origins cross-domain access. :type id: str :param id: A unique identifier for the rule. The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration. :type allowed_header: list of str :param allowed_header: Specifies which headers are allowed in a pre-flight OPTIONS request via the Access-Control-Request-Headers header. Each header name specified in the Access-Control-Request-Headers header must have a corresponding entry in the rule. Amazon S3 will send only the allowed headers in a response that were requested. This can contain at most one * wild character. :type max_age_seconds: int :param max_age_seconds: The time in seconds that your browser is to cache the preflight response for the specified resource. :type expose_header: list of str :param expose_header: One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). You add one ExposeHeader element in the rule for each header. N(t isinstancetlistttupleRRR(RRRRRRRR ((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pytadd_rule’s0         N(RRRRRRRR$(((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyRxs    N(tobjectRR"R(((s0/usr/lib/python2.6/site-packages/boto/s3/cors.pyts_