Changes between Version 51 and Version 52 of S3REST


Ignore:
Timestamp:
07/02/10 07:57:36 (11 years ago)
Author:
Robby O'Conner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3REST

    v51 v52  
    8888
    8989'''NB: Hooks should be added at the top of your controller function, especially pre-processing hooks.'''
    90 
    91 {{{
    92 def template():
    93     """ RESTlike CRUD controller """
    94     resource = "template"
    95     def _prep(jr):
    96         crud.settings.create_next = URL(r=request, f="series", args=["create"])
    97         crud.settings.update_next = URL(r=request, f="series", args=["create"]) #TODO: NB this needs to be re-worked!
    98         return True       
    99     response.s3.prep = _prep
    100     ....
    101 }}}
    102 
    10390
    10491A simple example: