Changes between Version 27 and Version 28 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
05/26/09 22:07:10 (16 years ago)
Author:
Fran Boon
Comment:

Options menu now defined in Controller

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v27 v28  
    6969# Current Module (for sidebar title)
    7070module_name = db(db.s3_module.name==module).select()[0].name_nice
    71 # List Options (from which to build Menu for this Module)
    72 options = db(db['%s_menu_option' % module].enabled=='Yes').select(db['%s_menu_option' % module].ALL, orderby=db['%s_menu_option' % module].priority)
     71
     72# Options Menu (available in all Functions' Views)
     73response.menu_options = [
     74    [T('Home'), False, URL(r=request, f='index')],
     75    [T('Add Vehicle'), False, URL(r=request, f='vehicle', args='create')],
     76    [T('List Vehicles'), False, URL(r=request, f='vehicle')],
     77    [T('Search Vehicles'), False, URL(r=request, f='vehicle', args='search')]
     78]
     79
    7380}}}
    7481