Changes between Version 29 and Version 30 of S3/S3REST/s3_rest_controller


Ignore:
Timestamp:
10/24/10 05:29:06 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3REST/s3_rest_controller

    v29 v30  
    4444
    4545=== Redirection ===
     46
     47Default destination of the redirection after a ''create'' or ''update'' is the ''read'' view of the processed record, after a ''delete'' it is the ''list'' view of the respective table.
     48
     49The redirection destination can be configured per DB table, using:
     50
     51{{{
     52s3xrc.model.configure(table, create_next=url)
     53}}}
     54{{{
     55s3xrc.model.configure(table, update_next=url)
     56}}}
     57{{{
     58s3xrc.model.configure(table, delete_next=url)
     59}}}
     60
     61where:
     62  - '''table''' is the respective DB table
     63  - '''url''' is the URL to redirect to
     64
     65If, for create_next or update_next, '''url''' contains the string literal "[id]" (or its URL-encoded equivalent), then this literal is replaced by the ID of the updated/newly created record before redirection.
    4666
    4767=== Callbacks ===