38 | | db.Field('description',length=256), |
39 | | db.Field('priority','integer'), |
40 | | db.Field('enabled','boolean',default='True')) |
41 | | db['%s_menu_option' % module].name.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'%s_menu_option.name' % module)] |
42 | | db['%s_menu_option' % module].name.requires=IS_NOT_EMPTY() |
43 | | db['%s_menu_option' % module].priority.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'%s_menu_option.priority' % module)] |
| 38 | db.Field('description', length=256), |
| 39 | db.Field('priority', 'integer'), |
| 40 | db.Field('enabled', 'boolean', default='True')) |
| 41 | db['%s_menu_option' % module].name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, '%s_menu_option.name' % module)] |
| 42 | db['%s_menu_option' % module].name.requires = IS_NOT_EMPTY() |
| 43 | db['%s_menu_option' % module].priority.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, '%s_menu_option.priority' % module)] |
88 | | s3.crud_fields[table]=['name'] |
89 | | db[table].exposes=s3.crud_fields[table] |
90 | | db[table].uuid.requires=IS_NOT_IN_DB(db,'%s.uuid' % table) |
91 | | db.veh_vehicle.name.requires=IS_NOT_EMPTY() |
92 | | db.veh_vehicle.name.comment=SPAN("*",_class="req") |
| 88 | db[table].uuid.requires = IS_NOT_IN_DB(db, '%s.uuid' % table) |
| 89 | db.veh_vehicle.name.requires = IS_NOT_EMPTY() |
| 90 | db.veh_vehicle.name.comment = SPAN("*", _class="req") |
97 | | title_create=T('Add Vehicle') |
98 | | title_display=T('Vehicle Details') |
99 | | title_list=T('List Vehicles') |
100 | | title_update=T('Edit Vehicle') |
101 | | title_search=T('Search Vehicles') |
102 | | subtitle_create=T('Add New Vehicle') |
103 | | subtitle_list=T('Vehicles') |
104 | | label_list_button=T('List Vehicles') |
105 | | label_create_button=T('Add Vehicle') |
106 | | msg_record_created=T('Vehicle added') |
107 | | msg_record_modified=T('Vehicle updated') |
108 | | msg_record_deleted=T('Vehicle deleted') |
109 | | msg_list_empty=T('No Vehicles currently registered') |
110 | | crud_strings[table]=Storage(title_create=title_create, title_display=title_display, title_list=title_list, title_update=title_update, subtitle_create=subtitle_create, subtitle_list=subtitle_list, label_list_button=label_list_button, label_create_button=label_create_button, msg_record_created=msg_record_created, msg_record_modified=msg_record_modified, msg_record_deleted=msg_record_deleted, msg_list_empty=msg_list_empty) |
| 95 | title_create = T('Add Vehicle') |
| 96 | title_display = T('Vehicle Details') |
| 97 | title_list = T('List Vehicles') |
| 98 | title_update = T('Edit Vehicle') |
| 99 | title_search = T('Search Vehicles') |
| 100 | subtitle_create = T('Add New Vehicle') |
| 101 | subtitle_list = T('Vehicles') |
| 102 | label_list_button = T('List Vehicles') |
| 103 | label_create_button = T('Add Vehicle') |
| 104 | msg_record_created = T('Vehicle added') |
| 105 | msg_record_modified = T('Vehicle updated') |
| 106 | msg_record_deleted = T('Vehicle deleted') |
| 107 | msg_list_empty = T('No Vehicles currently registered') |
| 108 | crud_strings[table] = Storage(title_create=title_create, title_display=title_display, title_list=title_list, title_update=title_update, subtitle_create=subtitle_create, subtitle_list=subtitle_list, label_list_button=label_list_button, label_create_button=label_create_button, msg_record_created=msg_record_created, msg_record_modified=msg_record_modified, msg_record_deleted=msg_record_deleted, msg_list_empty=msg_list_empty) |