Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad NameLoad Str Num AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr Num decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad Call NameLoad Return Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad While AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr NameLoad body Break Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
    tornadio.session
    ~~~~~~~~~~~~~~~~

    Simple heapq-based session implementation with sliding expiration window
    support.

    :copyright: (c) 2011 by the Serge S. Koval, see AUTHORS for more details.
    :license: Apache, see LICENSE for more details.
 heapq heappush heappop time time hashlib md5 random random Session N/A object N/A N/A Represents one session object stored in the session container.
    Derive from this object to store additional data.
     __init__ N/A N/A self session_id expiry N/A None N/A N/A N/A self session_id session_id N/A N/A self promoted None N/A N/A self expiry expiry N/A N/A N/A self expiry None N/A N/A N/A self expiry_date N/A N/A time N/A self expiry N/A promote N/A N/A self N/A N/A N/A Mark object is living, so it won't be collected during next
        run of the session garbage collector.
         N/A N/A N/A self expiry None N/A N/A N/A self promoted N/A N/A time N/A self expiry N/A on_delete N/A N/A self forced N/A N/A N/A Triggered when object was expired or deleted. N/A N/A __cmp__ N/A N/A self other N/A N/A N/A N/A cmp N/A self expiry_date N/A other expiry_date N/A __repr__ N/A N/A self N/A N/A N/A N/A %f %s %d N/A N/A getattr self expiry_date -1 N/A self session_id N/A N/A self promoted 0 N/A N/A _random_key N/A N/A N/A N/A N/A Return random session key N/A i N/A md5 N/A N/A N/A i update N/A %s%s N/A N/A random N/A time N/A N/A N/A i hexdigest N/A SessionContainer N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _items N/A dict N/A N/A self _queue N/A N/A create N/A N/A self session expiry N/A None kwargs N/A N/A Create new session object. N/A N/A kwargs N/A session_id N/A _random_key N/A N/A kwargs N/A expiry expiry N/A session N/A session kwargs N/A N/A N/A self _items N/A N/A session session_id session N/A N/A expiry None N/A N/A N/A heappush N/A self _queue session N/A session N/A get N/A N/A self session_id N/A N/A N/A Return session object or None if it is not available N/A N/A N/A N/A self _items get session_id None N/A remove N/A N/A self session_id N/A N/A N/A Remove session object from the container N/A session N/A N/A N/A self _items get session_id None N/A N/A session None N/A N/A N/A session promoted -1 N/A N/A N/A session on_delete True N/A True N/A False N/A expire N/A N/A self current_time N/A None N/A N/A Expire any old entries N/A N/A N/A self _queue N/A N/A N/A N/A current_time None N/A N/A current_time N/A time N/A N/A self _queue N/A N/A top N/A N/A self _queue N/A 0 N/A N/A N/A N/A top promoted None N/A N/A top expiry_date current_time N/A N/A N/A top N/A heappop N/A self _queue N/A need_reschedule N/A N/A N/A top promoted None N/A N/A top promoted current_time N/A N/A need_reschedule N/A N/A N/A top promoted None N/A N/A N/A top on_delete False N/A need_reschedule N/A N/A N/A top promoted None N/A N/A top promoted current_time N/A need_reschedule N/A N/A N/A top expiry_date N/A top promoted N/A N/A top promoted None N/A N/A heappush N/A self _queue top N/A N/A N/A N/A self _items N/A N/A top session_id N/A N/A