Changes between Version 56 and Version 57 of S3/S3Model/ComponentResources


Ignore:
Timestamp:
06/16/14 18:24:44 (7 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model/ComponentResources

    v56 v57  
    142142{{{#!python
    143143s3db.add_components("org_organisation",
    144                     org_office={"name": "headquarter",        # the component alias
    145                                 "joinby": "organisation_id"   # the foreign key
    146                                 "filterby": "office_type_id", # the name of the field in the component table to filter by
    147                                 "filterfor": 4,               # the value(s) to filter for
    148                                 "multiple": False             # there can be only one component record per master record
    149                                })
     144                    org_office = {"name": "headquarter",        # the component alias
     145                                  "joinby": "organisation_id"   # the foreign key
     146                                  "filterby": "office_type_id", # the name of the field in the component table to filter by
     147                                  "filterfor": 4,               # the value(s) to filter for
     148                                  "multiple": False             # there can be only one component record per master record
     149                                  })
    150150}}}
    151151