Changes between Version 15 and Version 16 of S3/S3Model/ComponentResources
- Timestamp:
- 11/24/11 11:12:13 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Model/ComponentResources
v15 v16 26 26 - increased complexity to handle such links in CRUD and XML/XSLT 27 27 28 === Link Actuation Settings ===28 === Link Actuation Options === 29 29 30 When using a link-table to link a primary resource to its components, the RESTful methods can handle this in a number of different ways, depending on the CRUD method and the configur ation setting:30 When using a link-table to link a primary resource to its components, the RESTful methods can handle this in a number of different ways, depending on the CRUD method and the configured option: 31 31 - ''replace'': hides the link table and always operates on the component table 32 32 - ''hide'': hides the component table and always operates on the link table … … 36 36 The following table gives an overview over link actuation in S3CRUD: 37 37 38 ||= CRUD Method =||||||||= Link Actuation Setting=||38 ||= CRUD Method =||||||||= Link Actuation Option =|| 39 39 ||= =||='''replace'''=||='''hide'''=||='''link'''=||='''embed'''=|| 40 40 ||='''create'''=|| create-form for component || create-form for link || create-form for link || create-form for link with component embedded || … … 58 58 joinby="fieldname", # FK of the master table (=left key constraint) 59 59 key="fieldname", # FK of the component table (=right key constraint) 60 actuate="replace", # Actuation setting(see above, optional, defaults to "link")60 actuate="replace", # Actuation option (see above, optional, defaults to "link") 61 61 autodelete=False # Delete the component record together with the last link (optional, default is False) 62 62 widget=Widget, # Widget to use for embedding (optional, defaults to S3EmbedComponentWidget)