Changes between Version 60 and Version 61 of DeveloperGuidelinesNewModule
- Timestamp:
- 11/29/13 22:26:45 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesNewModule
v60 v61 101 101 102 102 === Controller === 103 Create a file: {{{ /controllers/<MODULE NAME>.py}}}103 Create a file: {{{controllers/<MODULE NAME>.py}}} 104 104 105 105 Add controller functions for your resources, and an index() function for your controller's landing page: … … 107 107 {{{ 108 108 module = request.controller 109 110 if not settings.has_module(module): 111 raise HTTP(404, body="Module disabled: %s" % module) 109 112 110 113 def index(): … … 119 122 """ RESTful CRUD controller """ 120 123 121 resource = request.function 122 return s3_rest_controller(module, resource) 124 return s3_rest_controller() 123 125 }}} 124 126