Changes between Version 71 and Version 72 of RESTController


Ignore:
Timestamp:
08/07/11 17:17:34 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v71 v72  
    191191The following disables the create method for a resource
    192192{{{
    193 def restricted_method(jr, **attr):                                                                               
     193def restricted_method(r, **attr):                                                                               
    194194    """Handy function for restricting access to certain methods """                                                           
    195195    session.error = T("Restricted method")                                                                                   
     
    216216The action function has to take the following arguments:
    217217
    218   * '''jr''' = an instance of ''S3RESTRequest'' containing all data about the request
     218  * '''r''' = an instance of ''S3RESTRequest'' containing all data about the request
    219219  * '''**attr''' = a dictionary of named arguments (same named args as passed to the shn_rest_controller)
    220220
    221221----
    222222DeveloperGuidelines
    223 DeveloperGuidelines