202 | | * '''onvalidation=None''' = function to be called at create/update directly before writing to the database |
203 | | * '''onaccept=None''' = function to be called at create/update directly after writing to the database |
204 | | |
205 | | The onvalidation/onaccept callback functions in turn take a dictionary as argument that contains a {{{Storage()}}} object {{{vars}}} with fieldname=value pairs. They are to be called on create/update actions on the primary resource, while they '''must not''' be invoked when operating on component records, instead use {{{s3xml.model.get_attr(component_tablename, "onvalidation")}}} to retrieve the respective callbacks for the component table. |
| 201 | * '''**attr''' = a dictionary of named arguments (same named args as passed to the shn_rest_controller) |