Changes between Version 26 and Version 27 of RESTController


Ignore:
Timestamp:
11/24/09 19:06:53 (12 years ago)
Author:
Fran Boon
Comment:

tweaks

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v26 v27  
    9090    deletable=True,
    9191    editable=True,
    92     list_fields = ['id', 'opt_pr_image_type', 'image', 'title','description'])
     92    list_fields = ['id', 'opt_pr_image_type', 'image', 'title', 'description'])
    9393}}}
    9494
     
    111111== Controller ==
    112112
    113 As usual:
     113Define a controller action per resource to invoke the controller:
    114114
    115115{{{
     
    122122}}}
    123123
    124 New: the optional '''pheader''' argument. This 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.
     124The 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.
    125125
    126126If you pass a function or lambda as pheader, then it has to take 5 arguments: