Changes between Version 49 and Version 50 of RESTController


Ignore:
Timestamp:
07/10/10 19:56:44 (11 years ago)
Author:
Fran Boon
Comment:

rheader

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v49 v50  
    117117        main="first_name",
    118118        extra="last_name",
    119         pheader=shn_pr_pheader
    120 }}}
    121 
    122 The optional '''pheader''' 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 ''pheader'' variable to the view.
    123 
    124 If you pass a function or lambda as pheader, then it has to take 5 arguments:
     119        rheader=lambda jr: shn_pr_rheader(jr,
     120                    tabs = [(T("Basic Details"), None),
     121                            (T("Images"), "image"),
     122                            (T("Identity"), "identity"),
     123                            (T("Address"), "address"),
     124                            (T("Contact Data"), "pe_contact"),
     125                            (T("Memberships"), "group_membership"),
     126                            (T("Presence Log"), "presence"),
     127                            (T("Subscriptions"), "pe_subscription")
     128                            ]),
     129                sticky=True)
     130}}}
     131
     132The 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.
     133
     134If you pass a function or lambda as rheader, then it has to take 5 arguments:
    125135  - '''resource''' = name of the primary resource
    126136  - '''record_id''' = id of the primary resource record