Changes between Version 4 and Version 5 of S3/S3REST/s3_rest_controller
- Timestamp:
- 10/22/10 12:17:53 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3REST/s3_rest_controller
v4 v5 30 30 === Additional View Components === 31 31 32 Additional named arguments in the {{{s3_rest_controller}}} call control the output dict''after'' the request has been executed:32 Additional named arguments in the {{{s3_rest_controller}}} call control the {{{output dict}}} ''after'' the request has been executed: 33 33 34 - any callable argument will be invoked with the {{{S3Request}}} as first and only argument, and its return value will be added to the output dictinstead35 - any non-callable argument which is not None is added to the output dictas-is36 - any argument that gives None will remove this key from the output dict34 - any callable argument will be invoked with the {{{S3Request}}} as first and only argument, and its return value will be added to the {{{output dict}}} instead 35 - any non-callable argument which is not None will be added to the {{{output dict}}} as-is 36 - any argument that gives {{{None}}} will remove this key from the {{{output dict}}} 37 37 38 38 A typical use-case is '''rheader''': … … 49 49 }}} 50 50 51 In this case, the rheader variable is only added to the output when the my_rheader function returns something else than None.51 In this case, the {{{rheader}}} variable is only added to the output when {{{my_rheader(r)}}} returns something else than {{{None}}}. 52 52 53 53 ----