Changes between Version 5 and Version 6 of S3/DynamicTables
- Timestamp:
- 02/21/17 10:29:54 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/DynamicTables
v5 v6 123 123 }}} 124 124 125 Dynamic table controllers can be added easily in other modules, using {{{s3_rest_controller}}} with the {{{dynamic}}}-option.125 Dynamic table controllers like {{{/default/table}}} can easily be added in other modules, using {{{s3_rest_controller}}} with the {{{dynamic}}}-option. This option will construct the correct link URLs in e.g. CRUD action buttons: 126 126 127 127 {{{#!python … … 136 136 raise HTTP(400, "No resource specified") 137 137 }}} 138 139 Obviously, if the table name is known, a normal static REST controller can be used: 140 141 {{{#!python 142 def example(): 143 """ REST Controller for s3dt_example """ 144 145 return s3_rest_controller("s3dt", "example") 146 }}} 147 138 148 == Dynamic Components == 139 149