/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/website.pyc (12311B)
Ñò Å-õSc@s§d„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒYZd efd„ƒYZ dS(cCs%d|}d|}d|||fS(Ns<%s>ss%s%s%s((tkeytvaluetstarttend((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyttags  tWebsiteConfigurationcBs>eZdZddddd„Zd„Zd„Zd„ZRS(s Website configuration for a bucket. :ivar suffix: Suffix that is appended to a request that is for a "directory" on the website endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html). The suffix must not be empty and must not include a slash character. :ivar error_key: The object key name to use when a 4xx class error occurs. This key identifies the page that is returned when such an error occurs. :ivar redirect_all_requests_to: Describes the redirect behavior for every request to this bucket's website endpoint. If this value is non None, no other values are considered when configuring the website configuration for the bucket. This is an instance of ``RedirectLocation``. :ivar routing_rules: ``RoutingRules`` object which specifies conditions and redirects that apply when the conditions are met. cCsE||_||_||_|dj o ||_n tƒ|_dS(N(tsuffixt error_keytredirect_all_requests_totNonet routing_rulest RoutingRules(tselfRRRR ((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyt__init__7s      cCsg|djotƒ|_|iS|djotd gd|ƒS|djotd gd|ƒSdS( NR t IndexDocumenttSuffixRt containert ErrorDocumenttKeyR(Rssuffix(Rs error_key(R R t _XMLKeyValue(R tnametattrst connection((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyt startElementAs    cCsdS(N((R RRR((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyt endElementJscCsàddg}|idj o&|itdtd|iƒƒƒn|idj o&|itdtd|iƒƒƒn|idj o|i|iiƒƒn|io|i|iiƒƒn|idƒdi|ƒS( Ns&sFRRRRst( RR tappendRRRtto_xmlR tjoin(R tparts((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRMs &&  N(t__name__t __module__t__doc__R R RRR(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRs  RcBs/eZdd„Zd„Zd„Zd„ZRS(cCs*||_|o ||_n ||_dS(N(t translatorR(R R!R((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR ]s  cCsdS(N((R RRR((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRdscCsBx;|iD]0\}}||jot|i||ƒq q WdS(N(R!tsetattrR(R RRRtxml_keyt attr_name((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRgs  cCsfg}xP|iD]E\}}t|i|ƒ}|dj o|it||ƒƒqqWdi|ƒS(NR(R!tgetattrRR RRR(R RR#R$tcontent((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRls  N(RRR R RRR(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR\s   tRedirectLocationcBs2eZdZddgZd d d„Zd„ZRS( s*Specify redirect behavior for every request to a bucket's endpoint. :ivar hostname: Name of the host where requests will be redirected. :ivar protocol: Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request. tHostNamethostnametProtocoltprotocolcCs/||_||_tt|ƒi|iƒdS(N(R)R+tsuperR'R t TRANSLATOR(R R)R+((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR ‚s  cCstdtt|ƒiƒƒS(NtRedirectAllRequestsTo(RR,R'R(R ((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR‡s(R(shostname(R*sprotocolN(RRR R-R R R(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR'us  R cBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs|i|ƒ|S(sØ :type rule: :class:`boto.s3.website.RoutingRule` :param rule: A routing rule. :return: This ``RoutingRules`` object is returned, so that it can chain subsequent calls. (R(R trule((s3/usr/lib/python2.6/site-packages/boto/s3/website.pytadd_ruleŽs cCs8|djo'ttƒtƒƒ}|i|ƒ|SdS(Nt RoutingRule(R1t ConditiontRedirectR0(R RRRR/((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR›s  cCsdS(N((R RRR((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR¡scCsdtt|ƒiƒS(NsRoutingRules(%s)(R,R t__repr__(R ((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR4¤scCs@g}x!|D]}|i|iƒƒq Wtddi|ƒƒS(NR s (RRRR(R t inner_textR/((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR§s (RRR0RRR4R(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR Œs    R1cBseeZdZddd„Zd„Zd„Zd„Zeddd„ƒZ dddddd„Z RS(sRepresents a single routing rule. There are convenience methods to making creating rules more concise:: rule = RoutingRule.when(key_prefix='foo/').then_redirect('example.com') :ivar condition: Describes condition that must be met for the specified redirect to apply. :ivar redirect: Specifies redirect behavior. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return. cCs||_||_dS(N(t conditiontredirect(R R6R7((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR ¾s cCs.|djo|iS|djo|iSdS(NR2R3(R6R7(R RRR((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRÂs  cCsdS(N((R RRR((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRÈscCsdg}|io|i|iiƒƒn|io|i|iiƒƒntddi|ƒƒS(NR1s (R6RRR7RR(R R((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRËs   cCs|td|d|ƒdƒS(Nt key_prefixthttp_error_code(R2R (tclsR8R9((s3/usr/lib/python2.6/site-packages/boto/s3/website.pytwhenÓsc Cs.td|d|d|d|d|ƒ|_|S(NR)R+t replace_keytreplace_key_prefixthttp_redirect_code(R3R7(R R)R+R<R=R>((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyt then_redirectØs   N( RRR R R RRRt classmethodR;R?(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR1®s    R2cBs2eZdZddgZd d d„Zd„ZRS( s$ :ivar key_prefix: The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix docs/, the key prefix will be /docs, which identifies all objects in the docs/ folder. :ivar http_error_code: The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied. tKeyPrefixEqualsR8tHttpErrorCodeReturnedEqualsR9cCs/||_||_tt|ƒi|iƒdS(N(R8R9R,R2R R-(R R8R9((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR ôs  cCstdtt|ƒiƒƒS(NR2(RR,R2R(R ((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyRùs(RAs key_prefix(RBshttp_error_codeN(RRR R-R R R(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR2âs   R3cBsDeZdZd ddddgZdddddd „Zd „ZRS(sã :ivar hostname: The host name to use in the redirect request. :ivar protocol: The protocol to use in the redirect request. Can be either 'http' or 'https'. :ivar replace_key: The specific object key to use in the redirect request. For example, redirect request to error.html. :ivar replace_key_prefix: The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. :ivar http_redirect_code: The HTTP redirect code to use on the response. R*R+R(R)tReplaceKeyWithR<tReplaceKeyPrefixWithR=tHttpRedirectCodeR>cCsJ||_||_||_||_||_tt|ƒi|iƒdS(N( R)R+R<R=R>R,R3R R-(R R)R+R<R=R>((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR s      cCstdtt|ƒiƒƒS(NR3(RR,R3R(R ((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR"s(sProtocolsprotocol(sHostNameshostname(RCs replace_key(RDsreplace_key_prefix(REshttp_redirect_codeN(RRR R-R R R(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyR3ýs  N( RtobjectRRR'tlistR R1R2R3(((s3/usr/lib/python2.6/site-packages/boto/s3/website.pyts ?"4