Changes between Version 71 and Version 72 of RESTController
- Timestamp:
- 08/07/11 17:17:34 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v71 v72 191 191 The following disables the create method for a resource 192 192 {{{ 193 def restricted_method( jr, **attr):193 def restricted_method(r, **attr): 194 194 """Handy function for restricting access to certain methods """ 195 195 session.error = T("Restricted method") … … 216 216 The action function has to take the following arguments: 217 217 218 * ''' jr''' = an instance of ''S3RESTRequest'' containing all data about the request218 * '''r''' = an instance of ''S3RESTRequest'' containing all data about the request 219 219 * '''**attr''' = a dictionary of named arguments (same named args as passed to the shn_rest_controller) 220 220 221 221 ---- 222 222 DeveloperGuidelines 223 DeveloperGuidelines