Changes between Version 8 and Version 9 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
01/01/09 12:26:46 (16 years ago)
Author:
Fran Boon
Comment:

Simpler process with RESTful controller :)

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v8 v9  
    33== How to add a new module? ==
    44
    5 Copy an existing module & edit!
     5Copy an existing module, paste & edit.
     6Good modules to look at to start with are or & cr as these are simplest & standard.
    67
    78=== Model ===
     
    3738Add CRUD functions for these tables to {{{/controllers/module.py}}}
    3839
    39 DeveloperGuidelinesCreateReadUpdateDelete
     40The RESTful controller for a table needs just a few small tweaks once pasted:
     41 * Search/Replace 'organisation' with your_resource
     42 * Search/Replace 'Organisation' with Your_resource
     43 * Fix plurals, if required (e.g. Persons -> People, Classs to Classes, Metadatas -> Metadata)
     44
     45Old: DeveloperGuidelinesCreateReadUpdateDelete
    4046
    4147Populate the module's menu_options table with the functions that you wish to expose to the module's front page & left-hand navigation bar.
    4248
    4349=== Views ===
    44 Add HTML templates for each of these functions: {{{/views/module/function.html}}}
     50Add HTML templates for any custom functions: {{{/views/module/function.html}}}
     51
     52NB Only {{{index.html}}} is required to start with since the RESTful controller re-uses standard views
    4553
    4654DeveloperGuidelines