Changes between Version 59 and Version 60 of RESTController


Ignore:
Timestamp:
08/27/10 22:52:33 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v59 v60  
    127127        main="first_name",
    128128        extra="last_name",
    129         rheader=lambda jr: shn_pr_rheader(jr,
     129        rheader=lambda r: shn_pr_rheader(r,
    130130                    tabs = [(T("Basic Details"), None),
    131131                            (T("Images"), "image"),
     
    140140}}}
    141141
    142 The optional '''rheader''' argument helps you to display some information about the primary resource record in the view while operating on a component (e.g. the person's name and ID, when displaying a list of available images for this person). You may pass static content, or a function or lambda to produce content, which will be forwarded as ''rheader'' variable to the view.
     142The optional '''rheader''' argument helps you to display some information about the primary resource record in the view while operating on a component (e.g. the person's name and ID, when displaying a list of available images for this person). You may pass static content, or a function or lambda to produce content, which will be forwarded as ''rheader'' variable to the view. If rheader is a function or lambda, then it will be called with the current S3Request ("r") as the only argument.
     143
     144The tabs functionality is to be implemented by the respective rheader function, it is not generated by the REST controller.
    143145
    144146The "sticky" tag is to specify whether a create/update form of a primary record (=not a component) automatically returns to the list view or not: