| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
s3rest.S3Method --+
|
S3CRUD
Interactive CRUD Method Handler
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Methods | |||
|
|||
| Static Methods | |||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Apply CRUD methods
|
Entry point for other method handlers to embed this method as widget
|
Create new records
|
Read a single record
|
Update a record
|
Delete record(s)
To Do: update for link table components |
Filterable datatable/datalist
|
Get a list of unapproved records in this resource
|
Review/approve/reject an unapproved record.
|
Validate records (AJAX). This method reads a JSON object from
the request body, validates it against the current resource,
and returns a JSON object with either the validation errors or
the text representations of the data.
@param r: the S3Request
@param attr: dictionary of parameters for the method handler
Input JSON format:
{"<fieldname>":"<value>", "<fieldname>":"<value>"}
Output JSON format:
{"<fieldname>": {"value":"<value>",
"text":"<representation>",
"_error":"<error message>"}}
The input JSON can also be a list of multiple records. This
will return a list of results accordingly. Note that "text"
is not provided if there was a validation error, and vice
versa.
The record ID should always be present in the JSON to
avoid false duplicate errors.
Non-existent fields will return "invalid field" as _error.
Representations will be URL-escaped and any markup stripped.
The ?component=<alias> URL query can be used to specify a
component of the current resource rather than the main table.
This method does only accept .json format.
|
Generate a CRUD action button
|
Get the last update meta-data of the current record
|
Render CRUD buttons
|
Add a link to response.s3.actions
|
Provide the usual action buttons in list views. Allow customizing the urls, since this overwrites anything that would be inserted by CRUD/select via linkto. The resource id should be represented by "[id]".
Note: If custom actions are already configured at this point, they will appear AFTER the standard action buttons |
Import CSV file into database
|
Import data from vars in URL query
Note: can only update single records (no mass-update) To Do:
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:49 2019 | http://epydoc.sourceforge.net |