Docs for response.__delattr__.im_self
Description
<class 'gluon.globals.Response'>
|
Attributes
| response.__delattr__.im_self.__class__ |
<type 'type'> extends (<class 'gluon.storage.Storage'>,)
belongs to class <type 'type'>
defines the response object and the default values of its members response.write( ) can be used to write in the output html |
| response.__delattr__.im_self.__cmp__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y) |
| response.__delattr__.im_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 |
| response.__delattr__.im_self.__delattr__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__delitem__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delitem__(y) <==> del x[y] |
| response.__delattr__.im_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(seq) -> new dictionary initialized as if via: d = {} for k, v in seq: 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) |
| response.__delattr__.im_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. |
| response.__delattr__.im_self.__eq__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__eq__(y) <==> x==y |
| response.__delattr__.im_self.__ge__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__ge__(y) <==> x>=y |
| response.__delattr__.im_self.__getattr__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__getattribute__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name |
| response.__delattr__.im_self.__getitem__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__getstate__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__gt__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__gt__(y) <==> x>y |
| response.__delattr__.im_self.__hash__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x) |
| response.__delattr__.im_self.__init__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__iter__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__iter__() <==> iter(x) |
| response.__delattr__.im_self.__le__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__le__(y) <==> x<=y |
| response.__delattr__.im_self.__len__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__len__() <==> len(x) |
| response.__delattr__.im_self.__lt__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__lt__(y) <==> x<y |
| response.__delattr__.im_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. |
| response.__delattr__.im_self.__ne__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__ne__(y) <==> x!=y |
| response.__delattr__.im_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 |
| response.__delattr__.im_self.__reduce__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
| response.__delattr__.im_self.__reduce_ex__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
| response.__delattr__.im_self.__repr__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__setattr__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__setitem__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setitem__(i, y) <==> x[i]=y |
| response.__delattr__.im_self.__setstate__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.__str__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x) |
| response.__delattr__.im_self.__weakref__ |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
| response.__delattr__.im_self.clear |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.clear() -> None. Remove all items from D. |
| response.__delattr__.im_self.copy |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.copy() -> a shallow copy of D |
| response.__delattr__.im_self.download |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
example of usage in controller:: def download(): return response.download(request, db) downloads from http://..../download/filename |
| response.__delattr__.im_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. |
| response.__delattr__.im_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. |
| response.__delattr__.im_self.getfirst |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Return the first or only value 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') |
| response.__delattr__.im_self.getlast |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Returns the last or only single value 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') |
| response.__delattr__.im_self.getlist |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Return 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') [] |
| response.__delattr__.im_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 |
| response.__delattr__.im_self.include_files |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Caching method for writing out files. By default, caches in ram for 5 minutes. To change, response.cache_includes = (cache_method, time_expire). Example: (cache.disk, 60) # caches to disk for 1 minute. |
| response.__delattr__.im_self.include_meta |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_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 |
| response.__delattr__.im_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 |
| response.__delattr__.im_self.iterkeys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.iterkeys() -> an iterator over the keys of D |
| response.__delattr__.im_self.itervalues |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.itervalues() -> an iterator over the values of D |
| response.__delattr__.im_self.json |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.keys |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.keys() -> list of D's keys |
| response.__delattr__.im_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 |
| response.__delattr__.im_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 |
| response.__delattr__.im_self.render |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_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 |
| response.__delattr__.im_self.stream |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
if a controller function:: return response.stream(file, 100) the file content will be streamed at 100 bytes at the time |
| response.__delattr__.im_self.toolbar |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.update |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k] |
| response.__delattr__.im_self.values |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
D.values() -> list of D's values |
| response.__delattr__.im_self.write |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
| response.__delattr__.im_self.xmlrpc |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
assuming:: def add(a, b): return a+b if a controller function "func":: return response.xmlrpc(request, [add]) the controller will be able to handle xmlrpc requests for the add function. Example:: import xmlrpclib connection = xmlrpclib.ServerProxy('http://hostname/app/contr/func') print connection.add(3, 4) |