Docs for request.parse_all_vars.im_class

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'type'> extends (<class 'gluon.storage.Storage'>,)





















Defines the request object and the default values of its members

- env: environment variables, by gluon.main.wsgibase()
-
cookies
- get_vars
- post_vars
- vars
- folder
- application
- function
- args
- extension
- now: datetime.datetime.now()
-
utcnow : datetime.datetime.utcnow()
-
is_local
- is_https
- restful()


Attributes


request.parse_all_vars.im_class.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
type(object) -> the object's type type(name, bases, dict) -> a new type

request.parse_all_vars.im_class.__cmp__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__cmp__(y) <==> cmp(x,y)

request.parse_all_vars.im_class.__contains__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.__contains__(k) -> True if D has a key k, else False

request.parse_all_vars.im_class.__copy__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.__delattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delitem__(y) <==> del x[y]

request.parse_all_vars.im_class.__delitem__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delitem__(y) <==> del x[y]

request.parse_all_vars.im_class.__dict__ <type 'dictproxy'> belongs to class <type 'dictproxy'>

request.parse_all_vars.im_class.__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.

request.parse_all_vars.im_class.__eq__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__eq__(y) <==> x==y

request.parse_all_vars.im_class.__format__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
default object formatter

request.parse_all_vars.im_class.__ge__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__ge__(y) <==> x>=y

request.parse_all_vars.im_class.__getattr__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

request.parse_all_vars.im_class.__getattribute__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__getattribute__('name') <==> x.name

request.parse_all_vars.im_class.__getitem__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

request.parse_all_vars.im_class.__getnewargs__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.__getstate__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.__gt__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__gt__(y) <==> x>y

request.parse_all_vars.im_class.__hash__ <type 'NoneType'> belongs to class <type 'NoneType'>

request.parse_all_vars.im_class.__init__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.__iter__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__iter__() <==> iter(x)

request.parse_all_vars.im_class.__le__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__le__(y) <==> x<=y

request.parse_all_vars.im_class.__len__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__len__() <==> len(x)

request.parse_all_vars.im_class.__lt__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__lt__(y) <==> x<y

request.parse_all_vars.im_class.__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.

request.parse_all_vars.im_class.__ne__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__ne__(y) <==> x!=y

request.parse_all_vars.im_class.__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

request.parse_all_vars.im_class.__reduce__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

request.parse_all_vars.im_class.__reduce_ex__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

request.parse_all_vars.im_class.__repr__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.__setattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__setitem__(i, y) <==> x[i]=y

request.parse_all_vars.im_class.__setitem__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__setitem__(i, y) <==> x[i]=y

request.parse_all_vars.im_class.__sizeof__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.__sizeof__() -> size of D in memory, in bytes

request.parse_all_vars.im_class.__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.

request.parse_all_vars.im_class.__str__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__str__() <==> str(x)

request.parse_all_vars.im_class.__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).

request.parse_all_vars.im_class.__weakref__ <type 'getset_descriptor'> belongs to class <type 'getset_descriptor'>
list of weak references to the object (if defined)

request.parse_all_vars.im_class.body <type 'property'> belongs to class <type 'property'>

request.parse_all_vars.im_class.clear <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.clear() -> None. Remove all items from D.

request.parse_all_vars.im_class.compute_uuid <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.copy <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.copy() -> a shallow copy of D

request.parse_all_vars.im_class.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.

request.parse_all_vars.im_class.get <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

request.parse_all_vars.im_class.get_vars <type 'property'> belongs to class <type 'property'>
Lazily parses the query string into get_vars

request.parse_all_vars.im_class.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')

request.parse_all_vars.im_class.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')

request.parse_all_vars.im_class.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') []

request.parse_all_vars.im_class.has_key <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.has_key(k) -> True if D has a key k, else False

request.parse_all_vars.im_class.items <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.items() -> list of D's (key, value) pairs, as 2-tuples

request.parse_all_vars.im_class.iteritems <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.iteritems() -> an iterator over the (key, value) items of D

request.parse_all_vars.im_class.iterkeys <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.iterkeys() -> an iterator over the keys of D

request.parse_all_vars.im_class.itervalues <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.itervalues() -> an iterator over the values of D

request.parse_all_vars.im_class.keys <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.keys() -> list of D's keys

request.parse_all_vars.im_class.parse_all_vars <type 'instancemethod'> belongs to class <type 'instancemethod'>
Merges get_vars and post_vars to vars

request.parse_all_vars.im_class.parse_get_vars <type 'instancemethod'> belongs to class <type 'instancemethod'>
Takes the QUERY_STRING and unpacks it to get_vars

request.parse_all_vars.im_class.parse_post_vars <type 'instancemethod'> belongs to class <type 'instancemethod'>
Takes the body of the request and unpacks it into post_vars. application/json is also automatically parsed

request.parse_all_vars.im_class.pop <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
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

request.parse_all_vars.im_class.popitem <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.

request.parse_all_vars.im_class.post_vars <type 'property'> belongs to class <type 'property'>
Lazily parse the body into post_vars

request.parse_all_vars.im_class.requires_https <type 'instancemethod'> belongs to class <type 'instancemethod'>
If request comes in over HTTP, redirects it to HTTPS and secures the session.

request.parse_all_vars.im_class.restful <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.setdefault <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

request.parse_all_vars.im_class.update <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
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]

request.parse_all_vars.im_class.user_agent <type 'instancemethod'> belongs to class <type 'instancemethod'>

request.parse_all_vars.im_class.uuid <type 'property'> belongs to class <type 'property'>
Lazily uuid

request.parse_all_vars.im_class.values <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.values() -> list of D's values

request.parse_all_vars.im_class.vars <type 'property'> belongs to class <type 'property'>
Lazily parses all get_vars and post_vars to fill vars

request.parse_all_vars.im_class.viewitems <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.viewitems() -> a set-like object providing a view on D's items

request.parse_all_vars.im_class.viewkeys <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.viewkeys() -> a set-like object providing a view on D's keys

request.parse_all_vars.im_class.viewvalues <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.viewvalues() -> an object providing a view on D's values