Home | Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | storage.Storage --+ | Response
defines the response object and the default values of its members response.write( ) can be used to write in the output html
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
if a controller function: return response.stream(file, 100) the file content will be streamed at 100 bytes at the time |
example of usage in controller: def download(): return response.download(request, db) downloads from http://..../download/filename |
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) |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Feb 3 10:53:19 2010 | http://epydoc.sourceforge.net |