Changes between Version 18 and Version 19 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
01/17/09 18:11:50 (13 years ago)
Author:
Fran Boon
Comment:

Update to current

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v18 v19  
    7272db.define_table(table,timestamp,uuidstamp,
    7373                SQLField('name'))
    74 exec("s3.crud_fields.%s=['name']" % table)
     74s3.crud_fields[table]=['name']
    7575db[table].exposes=s3.crud_fields[table]
    7676db[table].uuid.requires=IS_NOT_IN_DB(db,'%s.uuid' % table)
     
    9494msg_record_deleted=T('Vehicle deleted')
    9595msg_list_empty=T('No Vehicles currently registered')
    96 exec('crud_strings.%s=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)' % table)
     96crud_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)
    9797}}}
    9898