Changes between Version 9 and Version 10 of JoinedResourceController


Ignore:
Timestamp:
09/20/09 20:01:46 (15 years ago)
Author:
Fran Boon
Comment:

dictionary example

Legend:

Unmodified
Added
Removed
Modified
  • JoinedResourceController

    v9 v10  
    4545  - '''joinby''' describes the join keys:
    4646    - pass a single field name for natural joins (same key field in both tables)
    47     - pass a dictionary of ''tablename=fieldname'' pairs for primary/foreign key matching, in which:
     47    - pass a dictionary of ''tablename:fieldname'' pairs for primary/foreign key matching, in which:
    4848      - ''tablename'' is the name of the respective primary table
    4949      - ''fieldname'' the name of the foreign key in the joined table that points to the ''id'' field in the primary table
     50      - e.g. {{{joinby = {'db.gis_feature':'feature_id'}}}}
    5051  - '''fields''' is a list of the fields in the joined resource that shall appear in list views:
    5152    - if omitted or set to None, all readable fields will be included