Package s3 :: Module s3mobile :: Class S3MobileCRUD
[frames] | no frames]

Class S3MobileCRUD

source code

     object --+    
              |    
s3rest.S3Method --+
                  |
                 S3MobileCRUD

Mobile Data Handler

responds to GET /prefix/name/mform.json (Schema download)

Instance Methods
 
apply_method(self, r, **attr)
Entry point for REST interface.
source code
 
mform(self, r, **attr)
Get the mobile form for the target 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

Inherited from s3rest.S3Method: crud_string

Properties

Inherited from object: __class__

Method Details

apply_method(self, r, **attr)

source code 

Entry point for REST interface.

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

mform(self, r, **attr)

source code 

Get the mobile form for the target resource

Parameters:
  • r - the S3Request instance
  • attr - controller attributes
Returns:
a JSON string