/usr/lib/python2.6/site-packages/boto/dynamodb2
NameSizeModeActions
exceptions.py19900644editdlrm
exceptions.pyc31040644editdlrm
exceptions.pyo31040644editdlrm
fields.py82920644editdlrm
fields.pyc108150644editdlrm
fields.pyo108150644editdlrm
items.py145220644editdlrm
items.pyc144720644editdlrm
items.pyo144720644editdlrm
layer1.py1429330644editdlrm
layer1.pyc1361630644editdlrm
layer1.pyo1361630644editdlrm
results.py65650644editdlrm
results.pyc59680644editdlrm
results.pyo59680644editdlrm
table.py541230644editdlrm
table.pyc485210644editdlrm
table.pyo485210644editdlrm
types.py8590644editdlrm
types.pyc8670644editdlrm
types.pyo8670644editdlrm
__init__.py17130644editdlrm
__init__.pyc9780644editdlrm
__init__.pyo9780644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyc (5968B)
Ñò Å-õSc@s0defd„ƒYZdefd„ƒYZdS(t ResultSetcBs\eZdZdd„Zed„ƒZd„Zd„Zd„Z e Z d„Z d„Z RS( s¼ A class used to lazily handle page-to-page navigation through a set of results. It presents a transparent iterator interface, so that all the user has to do is use it in a typical ``for`` loop (or list comprehension, etc.) to fetch results, even if they weren't present in the current page of results. This is used by the ``Table.query`` & ``Table.scan`` methods. Example:: >>> users = Table('users') >>> results = ResultSet() >>> results.to_call(users.query, username__gte='johndoe') # Now iterate. When it runs out of results, it'll fetch the next page. >>> for res in results: ... print res['username'] cCsqtt|ƒiƒd|_g|_h|_g|_d|_t |_ d|_ d|_ ||_ d|_dS(Niÿÿÿÿi(tsuperRt__init__tNonet the_callablet call_argst call_kwargst_resultst_offsettTruet _results_leftt_last_key_seent_fetchest_max_page_sizet_limit(tselft max_page_size((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyRs         cCsdS(Ntexclusive_start_key((R((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyt first_key$scCsg|_d|_dS(sº Resets the internal state of the ``ResultSet``. This prevents results from being cached long-term & consuming excess memory. Largely internal. iN(RR(R((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyt_reset(s cCs|S(N((R((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyt__iter__4scCsõ|id7_|it|iƒjoX|itjo tƒ‚n|iƒx.t|iƒ o|io|iƒqRWn|it|iƒjoO|idj o0|id8_|idjo tƒ‚qÙn|i|iStƒ‚dS(Nii( RtlenRR tFalset StopIterationt fetch_moreRR(R((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pyt__next__7s  cOs~t|ƒptdƒ‚n|iddƒ|_|idj o|idjo d|_n||_||_||_dS(sê Sets up the callable & any arguments to run it with. This is stored for subsequent calls so that those queries can be run without requiring user intervention. Example:: # Just an example callable. >>> def squares_to(y): ... for x in range(1, y): ... yield x**2 >>> rs = ResultSet() # Set up what to call & arguments. >>> rs.to_call(squares_to, y=3) s3You must supply an object or function to be called.tlimitiN(tcallablet ValueErrortpopRRRRR(RRtargstkwargs((s:/usr/lib/python2.6/site-packages/boto/dynamodb2/results.pytto_callSs      cCs©|iƒ|i}|iiƒ}|idj o|i||is¦