Changes between Version 34 and Version 35 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
05/24/10 06:59:32 (12 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v34 v35  
    7575module = 'veh'
    7676# Current Module (for sidebar title)
    77 module_name = db(db.s3_module.name==module).select()[0].name_nice
     77module_name = db(db.s3_module.name==module).select().first().name_nice
    7878
    7979# Options Menu (available in all Functions' Views)
    8080response.menu_options = [
    81     [T('Home'), False, URL(r=request, f='index')],
    82     [T('Add Vehicle'), False, URL(r=request, f='vehicle', args='create')],
    83     [T('List Vehicles'), False, URL(r=request, f='vehicle')],
    84     [T('Search Vehicles'), False, URL(r=request, f='vehicle', args='search')]
     81    [T("Home"), False, URL(r=request, f="index")],
     82    [T("Add Vehicle"), False, URL(r=request, f="vehicle", args="create")],
     83    [T("List Vehicles"), False, URL(r=request, f="vehicle")],
     84    [T("Search Vehicles"), False, URL(r=request, f="vehicle", args="search")]
    8585]
    8686
     
    9191def vehicle():
    9292    "RESTful CRUD controller"
    93     return shn_rest_controller(module, 'vehicle')
     93    return shn_rest_controller(module, "vehicle")
    9494}}}
    9595