| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
S3Request
Class to handle RESTful requests
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Static Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Class Variables | |
INTERACTIVE_FORMATS = "html", "iframe", "popup", "dl"
|
|
DEFAULT_REPRESENTATION = "html"
|
|
| Properties | |
|
Inherited from |
| Method Details |
Constructor
Note: all parameters fall back to the attributes of the current web2py request object |
Set a method handler for this request
|
Get a method handler for this request
|
Get the widget handler for a method
|
Execute this request
|
XML Element tree export method
|
XML Element tree import method
|
Resource structure introspection method
|
Resource structure introspection method (single table)
|
Field options introspection method (single table)
|
Generate a new request for the same resource
|
Called upon S3Request.<key> - looks up the value for the <key> attribute. Falls back to current.request if the attribute is not defined in this S3Request.
|
Check the request for a transformable format
|
Determine whether to actuate a link or not
|
Action upon unauthorised request |
Action upon error
|
Returns the URL of this request, use parameters to override current requests attributes:
|
Get the target table of the current request
To Do: update for link table support |
Find the XSLT stylesheet for this request
|
Read data from request body |
Invoke the customization callback for a resource.
@param tablename: the tablename of the resource; if called
without tablename it will invoke the callbacks
for the target resources of this request:
- master
- active component
- active link table
(in this order)
Resource customization functions can be defined like:
def customise_resource_my_table(r, tablename):
current.s3db.configure(tablename,
my_custom_setting = "example")
return
settings.customise_resource_my_table = customise_resource_my_table
@note: the hook itself can call r.customise_resource in order
to cascade customizations as necessary
@note: if a table is customised that is not currently loaded,
then it will be loaded for this process
|
| Class Variable Details |
INTERACTIVE_FORMATS
|
DEFAULT_REPRESENTATION
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |