Changes between Version 41 and Version 42 of RESTController
- Timestamp:
- 05/27/10 06:42:06 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v41 v42 130 130 def kit(): 131 131 "REST CRUD controller" 132 response.s3. pdf = URL(r=request, f='kit_export_pdf')133 response.s3. xls = URL(r=request, f='kit_export_xls')132 response.s3.formats.pdf = URL(r=request, f='kit_export_pdf') 133 response.s3.formats.xls = URL(r=request, f='kit_export_xls') 134 134 if len(request.args) == 2: 135 135 crud.settings.update_next = URL(r=request, f='kit_item', args=request.args[1]) … … 137 137 }}} 138 138 139 The {{{response.s3. pdf}}} & {{{response.s3.xls}}} provide the {{{view/formats.html}}} with an alternate URL to provide a customised version of the PDF/XLS output available when clicking on the icon ({{{response.s3.rss}}} is also available).139 The {{{response.s3.formats.pdf}}} & {{{response.s3.formats.xls}}} provide the {{{view/formats.html}}} with an alternate URL to provide a customised version of the PDF/XLS output available when clicking on the icon ({{{response.s3.formats.rss}}} is also available). 140 140 141 141 {{{