Changes between Version 72 and Version 73 of RESTController


Ignore:
Timestamp:
12/03/12 14:34:30 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v72 v73  
    8282{{{
    8383resource = "image"
    84 table = "%s_%s" % (module, resource)
    85 db.define_table(table,
     84tablename = "%s_%s" % (module, resource)
     85db.define_table(tablename,
    8686                pr_pe_id,
    8787                opt_pr_image_type,
     
    9393
    9494# Component
    95 s3xrc.model.add_component(module, resource,
    96     multiple=True,
    97     joinby="pr_pe_id",
    98     deletable=True,
    99     editable=True,
    100     list_fields = ["id", "opt_pr_image_type", "image", "title", "description"])
     95s3db.add_component(tablename,
     96                   multiple=True,
     97                   joinby="pr_pe_id",
     98                   deletable=True,
     99                   editable=True,
     100                   list_fields = ["id", "opt_pr_image_type", "image", "title", "description"])
    101101}}}
    102102