Home | Trees | Indices | Help |
|
---|
|
??-278 --+ | S3Selector
Base class for JSON-based complex selectors (e.g. S3LocationSelector), used to detect this widget class during form processing, and to apply a common API.
Subclasses must implement:
Subclasses should use:
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Method Details |
Widget renderer. To be implemented in subclass.
|
Extract the record from the database and update values. To be implemented in subclass.
|
Representation method for new or updated value dicts. IMPORTANT: This method *must not* change DB status because it is called from inline forms before the the row is committed to the DB, so any DB status change would be invalid at this point. To be implemented in subclass. @param values: the values dict @return: string representation for the values dict |
Parse and validate the input value, but don't create or update any records. This will be called by S3CRUD.validate to validate inline-form values. To be implemented in subclass.
|
Post-process to create or update records. Called during POST before validation of the outer form. To be implemented in subclass.
|
Generate the (hidden) input field. Should be used in __call__.
|
Serialize the values (as JSON string). Called from inputfield().
|
Parse the form value into a dict. The value would be a record id if coming from the database, or a JSON string when coming from a form. Should be called from validate(), doesn't need to be re-implemented in subclass.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:51 2019 | http://epydoc.sourceforge.net |