Changes between Version 24 and Version 25 of DeveloperGuidelinesNewModule
- Timestamp:
- 04/17/09 12:45:54 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesNewModule
v24 v25 34 34 # Menu Options 35 35 db.define_table('%s_menu_option' % module, 36 SQLField('name'),37 SQLField('function'),38 SQLField('description',length=256),39 SQLField('priority','integer'),40 SQLField('enabled','boolean',default='True'))36 db.Field('name'), 37 db.Field('function'), 38 db.Field('description',length=256), 39 db.Field('priority','integer'), 40 db.Field('enabled','boolean',default='True')) 41 41 db['%s_menu_option' % module].name.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'%s_menu_option.name' % module)] 42 42 db['%s_menu_option' % module].name.requires=IS_NOT_EMPTY() … … 85 85 table=module+'_'+resource 86 86 db.define_table(table,timestamp,uuidstamp, 87 SQLField('name'))87 db.Field('name')) 88 88 s3.crud_fields[table]=['name'] 89 89 db[table].exposes=s3.crud_fields[table]