Changes between Version 10 and Version 11 of DeveloperGuidelines


Ignore:
Timestamp:
12/20/08 06:13:15 (16 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines

    v10 v11  
    4242
    4343== T2 ==
    44 This plugin is used for [wiki:DeveloperGuidelinesAuthenticationAccess AAA] & simplified [wiki:
    45 DeveloperGuidelinesCreateReadUpdateDelete CRUD] (inc Conflict Detection)
     44This plugin is used for [wiki:DeveloperGuidelinesAuthenticationAccess AAA] & simplified [wiki:DeveloperGuidelinesCreateReadUpdateDelete CRUD] (inc Conflict Detection)
    4645 * http://mdp.cti.depaul.edu/examples/static/t2.pdf
    4746We extend the T2 class in {{{modules/sahana.py}}}
     47
     48=== Conflict Detection ===
     49Add this field to each table which needs protecting (in {{{models/db.py}}}):
     50{{{
     51SQLField('modified_on','datetime'), # Used by T2 to do edit conflict-detection
     52}}}
     53
     54== Sahana3 Framework ==
     55These are the bits that we use on top of Web2Py to give the Sahana look & feel:
    4856
    4957Populate the side navigation Menus by adding this to each controller:
     
    6068Each function needs to return these values to the view:
    6169  return dict(module_name=module_name,modules=modules,options=options)
     70
    6271
    6372List output can be made more functional by adding this to your table definitions in models/db.py:
     
    8089
    8190Help for a form field can be set using:
    82    {{{A(SPAN("[Help]"),_class="popupLink",_id="tooltip",_title=T("Help|This is what this field is for."))}}}
    83 
    84 
    85 === Conflict Detection ===
    86 Add this field to each table which needs protecting (in {{{models/db.py}}}):
    87 {{{
    88 SQLField('modified_on','datetime'), # Used by T2 to do edit conflict-detection
    89 }}}
    90 
    91 DeveloperGuidelinesNewModule
     91   {{{A(SPAN("[Help]"),_class="popupLink",_id="tooltip",_title=T("Help Title|This is what this field is for."))}}}
    9292
    9393=== Options fields ===
     
    9595Sahana3 uses a separate table for each lookup list
    9696
     97== How to add a new Module? ==
     98DeveloperGuidelinesNewModule
     99
    97100DeveloperGuidelinesAdvanced