Changes between Version 5 and Version 6 of S3/DynamicTables


Ignore:
Timestamp:
02/21/17 10:29:54 (8 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/DynamicTables

    v5 v6  
    123123}}}
    124124
    125 Dynamic table controllers can be added easily in other modules, using {{{s3_rest_controller}}} with the {{{dynamic}}}-option.
     125Dynamic 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:
    126126
    127127{{{#!python
     
    136136        raise HTTP(400, "No resource specified")
    137137}}}
     138
     139Obviously, if the table name is known, a normal static REST controller can be used:
     140
     141{{{#!python
     142def example():
     143    """ REST Controller for s3dt_example """
     144
     145    return s3_rest_controller("s3dt", "example")
     146}}}
     147
    138148== Dynamic Components ==
    139149