Changes between Version 48 and Version 49 of DeveloperGuidelinesS3Framework


Ignore:
Timestamp:
09/12/10 10:10:43 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesS3Framework

    v48 v49  
    5252}}}
    5353
     54=== Conflict Detection ===
     55Sahana is a multi-user system so there is a potential for multiple users to be editing the same record at once.[[BR]]
     56We use Web2Py's CRUD to handle this for us.
     57
     58Add this reusable field to each table which needs protecting (in {{{models/module.py}}}):
     59{{{
     60timestamp
     61}}}
     62
     63=== Synchronization ===
    5464All 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
    5568== Optional ==
    5669Other 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.
     
    142155 * [wiki:DeveloperGuidelinesDeletableList Deletable List] (old)
    143156
    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 timestamp
    151 }}}
    152 
    153 This field is also used in [wiki:DeveloperGuidelinesDatabaseSynchronization Database Synchronization]
    154 
    155157----
    156158DeveloperGuidelines