Changes between Version 55 and Version 56 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
11/29/13 22:10:52 (8 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v55 v56  
    8383Additional options are described here: [wiki:S3/S3REST/s3_rest_controller s3_rest_controller]
    8484
    85 Add the messages for your resources:
    86 {{{
    87 def vehicle():
    88     "RESTful CRUD controller"
    89     resource = request.function
    90     s3.crud_strings[tablename] = Storage(
    91         title_create = T("Add Vehicle"),
    92         title_display = T("Vehicle Details"),
    93         title_list = T("List Vehicles"),
    94         title_update = T("Edit Vehicle"),
    95         title_search = T("Search Vehicles"),
    96         subtitle_create = T("Add New Vehicle"),
    97         subtitle_list = T("Vehicles"),
    98         label_list_button = T("List Vehicles"),
    99         label_create_button = T("Add Vehicle"),
    100         label_delete_button = T("Delete Vehicle"),
    101         msg_record_created = T("Vehicle added"),
    102         msg_record_modified = T("Vehicle updated"),
    103         msg_record_deleted = T("Vehicle deleted"),
    104         msg_list_empty = T("No Vehicles currently registered"))
    105 
    106     return s3_rest_controller(module, resource)
    107 }}}
     85=== Menu ===
    10886
    10987Add a menu: