Changes between Version 66 and Version 67 of RESTController
- Timestamp:
- 08/07/11 17:15:40 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v66 v67 154 154 def kit(): 155 155 "REST CRUD controller" 156 response.s3.formats.pdf = URL( r=request,f="kit_export_pdf")157 response.s3.formats.xls = URL( r=request,f="kit_export_xls")156 response.s3.formats.pdf = URL(f="kit_export_pdf") 157 response.s3.formats.xls = URL(f="kit_export_xls") 158 158 if len(request.args) == 2: 159 crud.settings.update_next = URL( r=request,f="kit_item", args=request.args[1])159 crud.settings.update_next = URL(f="kit_item", args=request.args[1]) 160 160 return shn_rest_controller(module, "kit", main="code", onaccept=lambda form: kit_total(form)) 161 161 }}}