Package s3 :: Module s3xforms :: Class S3XForms
[frames] | no frames]

Class S3XForms

source code

     object --+    
              |    
s3rest.S3Method --+
                  |
                 S3XForms

XForm-based CRUD Handler

Instance Methods
 
apply_method(self, r, **attr)
Apply CRUD methods
source code
 
form(self, r, **attr)
Generate an XForms form for the current resource
source code

Inherited from s3rest.S3Method: __call__, widget

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
formlist()
Retrieve a list of available XForms
source code

Inherited from s3rest.S3Method: crud_string

Properties

Inherited from object: __class__

Method Details

apply_method(self, r, **attr)

source code 

Apply CRUD methods

Parameters:
  • r - the S3Request
  • attr - controller parameters for the request
Returns:
output object to send to the view
Overrides: s3rest.S3Method.apply_method

form(self, r, **attr)

source code 

Generate an XForms form for the current resource

Parameters:
  • r - the S3Request
  • attr - controller parameters for the request

formlist()
Static Method

source code 

Retrieve a list of available XForms

Returns:
a list of tuples (url, title) of available XForms