Changes between Version 29 and Version 30 of S3/S3Model
- Timestamp:
- 02/02/14 21:42:27 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Model
v29 v30 193 193 194 194 - {{{super_entity}}} and {{{super_link}}} to define or reference super entities 195 - {{{add_component }}} to define resource components195 - {{{add_components}}} to define resource components 196 196 - {{{configure}}} to define table configuration settings 197 197 … … 316 316 Components are sub-tables of a master entity ("has"-relationship). 317 317 318 Components can be defined in S3Models using the {{{add_component }}} method, e.g.318 Components can be defined in S3Models using the {{{add_components}}} method, e.g. 319 319 320 320 {{{#!python 321 321 # Offices (org_office table) are a component of organisations (org_organisation table), 322 322 # linked through the organisation_id field in org_office 323 current.s3db.add_component ("org_office", org_organisation="organisation_id")323 current.s3db.add_components("org_organisation", org_office="organisation_id") 324 324 }}} 325 325