/usr/lib/python2.6/site-packages/boto/dynamodb
NameSizeModeActions
batch.py98100644editdlrm
batch.pyc98960644editdlrm
batch.pyo98960644editdlrm
condition.py38810644editdlrm
condition.pyc69990644editdlrm
condition.pyo69990644editdlrm
exceptions.py16870644editdlrm
exceptions.pyc29550644editdlrm
exceptions.pyo29550644editdlrm
item.py82800644editdlrm
item.pyc84790644editdlrm
item.pyo84790644editdlrm
layer1.py240570644editdlrm
layer1.pyc209920644editdlrm
layer1.pyo209920644editdlrm
layer2.py337320644editdlrm
layer2.pyc311810644editdlrm
layer2.pyo311810644editdlrm
schema.py39780644editdlrm
schema.pyc36440644editdlrm
schema.pyo36440644editdlrm
table.py218080644editdlrm
table.pyc223820644editdlrm
table.pyo223820644editdlrm
types.py112060644editdlrm
types.pyc144440644editdlrm
types.pyo144440644editdlrm
__init__.py16970644editdlrm
__init__.pyc9780644editdlrm
__init__.pyo9780644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyo (20992B)
-Sc @sddkZddklZddkZddklZddklZddkl Z ddk l Z ddk lZdefd YZdS( iN(tcrc32(tAWSAuthConnection(tDynamoDBResponseError(tProvider(t exceptions(tjsontLayer1c BsseZdZdZdZdZdZdZdZdZ e Z dZ ddedddd ddeedd Zd Zd Zd ddZdZdZdddZdZdZdZdZdeddZddZddZddddZddddZddddZ dddeeddedZ!dddddedZ"RS(se This is the lowest-level interface to DynamoDB. Methods at this layer map directly to API requests and parameters to the methods are either simple, scalar values or they are the Python equivalent of the JSON input as defined in the DynamoDB Developer's Guide. All responses are direct decoding of the JSON response bodies to Python data structures via the json or simplejson modules. :ivar throughput_exceeded_events: An integer variable that keeps a running total of the number of ThroughputExceeded responses this connection has received from Amazon DynamoDB. s us-east-1tDynamoDBt20111205t&ProvisionedThroughputExceededExceptions.com.amazon.coral.service#ExpiredTokenExceptiontConditionalCheckFailedExceptiontValidationExceptioni ic Cs| pTtiidd|i} x6tiiD]!}|i| jo |} Pq2q2Wn| |_tt |i |ii ||||||d|d|d| d| d|_ tii dd| |_dS( NRtregiontdebugtsecurity_tokentvalidate_certst profile_nameitvalidate_checksums(tbototconfigtgettDefaultRegionNametdynamodbtregionstnameR tsuperRt__init__tendpointtthroughput_exceeded_eventstgetboolt_validate_checksums(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portR RR RRRt region_nametreg((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyRJs&      cCs)t|i|_|ii|idS(N(Rt_provider_typetprovidert _auth_handlertupdate_provider(R((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyt_get_session_tokenbscCsdgS(Nshmac-v4((R((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyt_required_auth_capabilityfstc Cs-hd|i|i|fd6|iid6dd6tt|d6}|idddh||d}ti}|i |d dd |i d |i }ti|d }|i d } t iid| t iid|d| t||iid} t ii| ti| d|S(sW :raises: ``DynamoDBExpiredTokenError`` if the security token expires. s%s_%s.%ss X-Amz-TargettHostsapplication/x-amz-json-1.0s Content-TypesContent-LengthtPOSTt/tsendertoverride_num_retriest retry_handlerisx-amzn-RequestIds RequestId: %ss%s: id=%s time=%smssutf-8t object_hookN(t ServiceNametVersionR Rtstrtlentbuild_base_http_requesttNonettimet_mexet NumberRetriest_retry_handlert getheaderRtlogR tperflogtinttreadtdecodeRtloads( RtactiontbodyR5theaderst http_requesttstarttresponsetelapsedt request_idt response_body((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyt make_requestis&      c Csed}|idjo|iid}tii|ti|}|i |i djo}|i d7_ d|i |f}|i |}|d7}|||f}||i joti|i|i|qq|i|i djo.d}|i|||iddf}q|i|i djoti|i|i|q|i|i djoti|i|i|q|i|i|i|n|id}|io|dj otiid |iidt|id @} t|}| |jo0d | |f}||d|i |f}qan|S( Nisutf-8t__typeis%s, retry attempt %ssRenewing Session Tokenis x-amz-crc32s&Validating crc32 checksum for body: %sIsAThe calculated checksum %s did not match the expected checksum %s(R;tstatusRDRERRAR RRFt ThruputErrorRRt_exponential_timeR>tdynamodb_exceptionstDynamoDBThroughputExceededErrortreasontSessionExpiredErrorR,t num_retriestConditionalCheckFailedErrort#DynamoDBConditionalCheckFailedErrortValidationErrortDynamoDBValidationErrort ResponseErrorR@RRRC( RRLtit next_sleepRRROtdatatmsgtexpected_crc32t actual_crc32((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyR?sJ       $cCsD|djo d}n*tdd|tiiddd}|S(Nig?itBototmax_retry_delayi<(tminRRR(RR_R`((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyRTs   cCsOh}|o||d|phSh|d6}ti|}|id|d|S(s  Return a set of attributes for a multiple items in multiple tables using their primary keys. :type request_items: dict :param request_items: A Python version of the RequestItems data structure defined by DynamoDB. t RequestItemst BatchGetItemR5(RRkRP(Rt request_itemsR5RaRn((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pytbatch_get_item<s  cCs2h|d6}ti|}|id|d|S(s This operation enables you to put or delete several items across multiple tables in a single API call. :type request_items: dict :param request_items: A Python version of the RequestItems data structure defined by DynamoDB. RtBatchWriteItemR5(RRkRP(RRR5RaRn((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pytbatch_write_itemMs cCsch|d6|d6}|o||dR;RRR,R-RPR?RTRoRsRzR|R~RRRRRRRRR(((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyR"sR      +    %   & ) " A(R<tbinasciiRRtboto.connectionRtboto.exceptionRt boto.providerRt boto.dynamodbRRUt boto.compatRR(((s8/usr/lib/python2.6/site-packages/boto/dynamodb/layer1.pyts