Changes between Version 48 and Version 49 of DeveloperGuidelinesS3Framework
- Timestamp:
- 09/12/10 10:10:43 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesS3Framework
v48 v49 52 52 }}} 53 53 54 === Conflict Detection === 55 Sahana is a multi-user system so there is a potential for multiple users to be editing the same record at once.[[BR]] 56 We use Web2Py's CRUD to handle this for us. 57 58 Add this reusable field to each table which needs protecting (in {{{models/module.py}}}): 59 {{{ 60 timestamp 61 }}} 62 63 === Synchronization === 54 64 All tables which are user-editable need to be protected for conflict resolution & synchronization using the predefined reusable fields {{{timestamp}}} & {{{uuidstamp}}}. 65 66 * [wiki:DeveloperGuidelinesDatabaseSynchronization Database Synchronization] 67 55 68 == Optional == 56 69 Other reusable fields are available to add Foreign Key links to key tables, such as 'location_id' to add a GIS location for Mapping, 'person_id' to add a Person & 'organisation_id' to add a link to an Organisation. … … 142 155 * [wiki:DeveloperGuidelinesDeletableList Deletable List] (old) 143 156 144 === Conflict Detection ===145 Sahana is a multi-user system so there is a potential for multiple users to be editing the same record at once.[[BR]]146 We use Web2Py's CRUD to handle this for us.147 148 Add this reusable field to each table which needs protecting (in {{{models/module.py}}}):149 {{{150 timestamp151 }}}152 153 This field is also used in [wiki:DeveloperGuidelinesDatabaseSynchronization Database Synchronization]154 155 157 ---- 156 158 DeveloperGuidelines