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

Class S3MobileForm

source code

object --+
         |
        S3MobileForm

Mobile representation of an S3SQLForm

Instance Methods
 
__init__(self, resource, form=None)
Constructor
source code
 
config(self)
The mobile form configuration (lazy property)
source code
 
serialize(self, msince=None)
Serialize the mobile form configuration for the target resource
source code
 
strings(self)
Add CRUD strings for mobile form
source code
 
components(self)
Add component declarations to the mobile form
source code

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

Static Methods
 
super_entities(tablename)
Helper method to determine the super entities of a table
source code
Properties

Inherited from object: __class__

Method Details

__init__(self, resource, form=None)
(Constructor)

source code 

Constructor

Parameters:
  • resource - the S3Resource
  • form - an S3SQLForm instance to override settings
Overrides: object.__init__

config(self)

source code 

The mobile form configuration (lazy property)

Returns:
a dict {tablename, title, options}
Decorators:
  • @property

serialize(self, msince=None)

source code 

Serialize the mobile form configuration for the target resource

Parameters:
  • msince - include look-up records only if modified after this datetime ("modified since")
Returns:
a JSON-serialiable dict containing the mobile form configuration for export to the mobile client

strings(self)

source code 

Add CRUD strings for mobile form

Returns:
a dict with CRUD strings for the resource

components(self)

source code 

Add component declarations to the mobile form

Returns:
a dict with component declarations for the resource

super_entities(tablename)
Static Method

source code 

Helper method to determine the super entities of a table

Parameters:
  • tablename - the table name
Returns:
a dict {super-table: super-key}