Changes between Version 50 and Version 51 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
11/29/13 21:37:30 (8 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v50 v51  
    55The Eden Book has a tutorial for [http://en.flossmanuals.net/sahana-eden/building-a-new-application adding a new module]. However, it is simplified from the normal way modules are included in Eden. Especially, the model file differs.
    66
     7=== Settings ===
     8
     9Add your module to settings.modules in {{{private/templates/<template>/config.py}}} if it is for a specific template.
     10
     11Add it to {{{private/templates/default/config.py}}} to provide an example of how your module should be entered in settings.modules.
    712
    813=== Model ===
    914
    1015Create a file {{{modules/s3db/<MODULE NAME>.py}}}
     16
     17Add an import statement to {{{models/00_tables.py}}}:
     18{{{
     19import s3db.<MODULE NAME>
     20}}}
    1121
    1222Add tables to modules/s3db/<MODULE NAME>.py file, as-required for your resources.