Docs for session.__reduce_ex__.__self__
Description
<class 'gluon.globals.Session'>
|
Attributes
session.__reduce_ex__.__self__.__class__ |
<type 'type'> extends (<class 'gluon.storage.Storage'>,)
belongs to class <type 'type'>
Defines the session object and the default values of its members (None) - session_storage_type : 'file', 'db', or 'cookie' - session_cookie_compression_level : - session_cookie_expires : cookie expiration - session_cookie_key : for encrypted sessions in cookies - session_id : a number or None if no session - session_id_name : - session_locked : - session_masterapp : - session_new : a new session obj is being created - session_hash : hash of the pickled loaded session - session_pickled : picked session if session in cookie: - session_data_name : name of the cookie for session data if session in db: - session_db_record_id - session_db_table - session_db_unique_key if session in file: - session_file - session_filename |
session.__reduce_ex__.__self__.__cmp__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y) |
session.__reduce_ex__.__self__.__contains__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.__contains__(k) -> True if D has a key k, else False |
session.__reduce_ex__.__self__.__copy__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.__delattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delitem__(y) <==> del x[y] |
session.__reduce_ex__.__self__.__delitem__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delitem__(y) <==> del x[y] |
session.__reduce_ex__.__self__.__dict__ |
<type 'dict'>
belongs to class <type 'dict'>
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
session.__reduce_ex__.__self__.__doc__ |
<type 'str'>
belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. |
session.__reduce_ex__.__self__.__eq__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__eq__(y) <==> x==y |
session.__reduce_ex__.__self__.__format__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
default object formatter |
session.__reduce_ex__.__self__.__ge__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__ge__(y) <==> x>=y |
session.__reduce_ex__.__self__.__getattr__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. |
session.__reduce_ex__.__self__.__getattribute__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name |
session.__reduce_ex__.__self__.__getitem__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. |
session.__reduce_ex__.__self__.__getnewargs__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.__getstate__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.__gt__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__gt__(y) <==> x>y |
session.__reduce_ex__.__self__.__hash__ |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
session.__reduce_ex__.__self__.__init__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see help(type(x)) for signature |
session.__reduce_ex__.__self__.__iter__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__iter__() <==> iter(x) |
session.__reduce_ex__.__self__.__le__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__le__(y) <==> x<=y |
session.__reduce_ex__.__self__.__len__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__len__() <==> len(x) |
session.__reduce_ex__.__self__.__lt__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__lt__(y) <==> x<y |
session.__reduce_ex__.__self__.__module__ |
<type 'str'>
belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. |
session.__reduce_ex__.__self__.__ne__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__ne__(y) <==> x!=y |
session.__reduce_ex__.__self__.__new__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T |
session.__reduce_ex__.__self__.__reduce__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
session.__reduce_ex__.__self__.__reduce_ex__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
session.__reduce_ex__.__self__.__repr__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.__setattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setitem__(i, y) <==> x[i]=y |
session.__reduce_ex__.__self__.__setitem__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setitem__(i, y) <==> x[i]=y |
session.__reduce_ex__.__self__.__sizeof__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.__sizeof__() -> size of D in memory, in bytes |
session.__reduce_ex__.__self__.__slots__ |
<type 'tuple'>
belongs to class <type 'tuple'>
tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable's items If the argument is a tuple, the return value is the same object. |
session.__reduce_ex__.__self__.__str__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x) |
session.__reduce_ex__.__self__.__subclasshook__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached). |
session.__reduce_ex__.__self__.__weakref__ |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
session.__reduce_ex__.__self__._close |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._fixup_before_save |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._try_store_in_cookie |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._try_store_in_cookie_or_file |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._try_store_in_db |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._try_store_in_file |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._unchanged |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__._unlock |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.clear |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.clear_session_cookies |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.connect |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Used in models, allows to customize Session handling Args: request: the request object response: the response object db: to store/retrieve sessions in db (a table is created) tablename(str): table name masterapp(str): points to another's app sessions. This enables a "SSO" environment among apps migrate: passed to the underlying db separate: with True, creates a folder with the 2 initials of the session id. Can also be a function, e.g. :: separate=lambda(session_name): session_name[-2:] check_client: if True, sessions can only come from the same ip cookie_key(str): secret for cookie encryption cookie_expires: sets the expiration of the cookie compression_level(int): 0-9, sets zlib compression on the data before the encryption |
session.__reduce_ex__.__self__.copy |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.copy() -> a shallow copy of D |
session.__reduce_ex__.__self__.forget |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.fromkeys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. v defaults to None. |
session.__reduce_ex__.__self__.get |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. |
session.__reduce_ex__.__self__.getfirst |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Returns the first value of a list or the value itself when given a `request.vars` style key. If the value is a list, its first item will be returned; otherwise, the value will be returned as-is. Example output for a query string of `?x=abc&y=abc&y=def`:: >>> request = Storage() >>> request.vars = Storage() >>> request.vars.x = 'abc' >>> request.vars.y = ['abc', 'def'] >>> request.vars.getfirst('x') 'abc' >>> request.vars.getfirst('y') 'abc' >>> request.vars.getfirst('z') |
session.__reduce_ex__.__self__.getlast |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Returns the last value of a list or value itself when given a `request.vars` style key. If the value is a list, the last item will be returned; otherwise, the value will be returned as-is. Simulated output with a query string of `?x=abc&y=abc&y=def`:: >>> request = Storage() >>> request.vars = Storage() >>> request.vars.x = 'abc' >>> request.vars.y = ['abc', 'def'] >>> request.vars.getlast('x') 'abc' >>> request.vars.getlast('y') 'def' >>> request.vars.getlast('z') |
session.__reduce_ex__.__self__.getlist |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Returns a Storage value as a list. If the value is a list it will be returned as-is. If object is None, an empty list will be returned. Otherwise, `[value]` will be returned. Example output for a query string of `?x=abc&y=abc&y=def`:: >>> request = Storage() >>> request.vars = Storage() >>> request.vars.x = 'abc' >>> request.vars.y = ['abc', 'def'] >>> request.vars.getlist('x') ['abc'] >>> request.vars.getlist('y') ['abc', 'def'] >>> request.vars.getlist('z') [] |
session.__reduce_ex__.__self__.has_key |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.has_key(k) -> True if D has a key k, else False |
session.__reduce_ex__.__self__.is_expired |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.is_new |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.items |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.items() -> list of D's (key, value) pairs, as 2-tuples |
session.__reduce_ex__.__self__.iteritems |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.iteritems() -> an iterator over the (key, value) items of D |
session.__reduce_ex__.__self__.iterkeys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.iterkeys() -> an iterator over the keys of D |
session.__reduce_ex__.__self__.itervalues |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.itervalues() -> an iterator over the values of D |
session.__reduce_ex__.__self__.keys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.keys() -> list of D's keys |
session.__reduce_ex__.__self__.pop |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised |
session.__reduce_ex__.__self__.popitem |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty. |
session.__reduce_ex__.__self__.renew |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.save_session_id_cookie |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.secure |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
session.__reduce_ex__.__self__.setdefault |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D |
session.__reduce_ex__.__self__.update |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] |
session.__reduce_ex__.__self__.values |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.values() -> list of D's values |
session.__reduce_ex__.__self__.viewitems |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.viewitems() -> a set-like object providing a view on D's items |
session.__reduce_ex__.__self__.viewkeys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.viewkeys() -> a set-like object providing a view on D's keys |
session.__reduce_ex__.__self__.viewvalues |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.viewvalues() -> an object providing a view on D's values |