| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
storage.Storage --+
|
Response
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
return response.stream(file, 100)the file content will be streamed at 100 bytes at the time |
def download():
return response.download(request, db)
downloads from http://..../download/filename
|
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.0beta1 on Sun Mar 4 22:11:58 2012 | http://epydoc.sourceforge.net |