Changes between Version 41 and Version 42 of DeveloperGuidelinesNewModule
- Timestamp:
- 08/07/11 17:22:22 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesNewModule
v41 v42 21 21 resource = "vehicle" 22 22 23 tablename = module + "_" + resource 24 table = db.define_table(tablename, timestamp, uuidstamp, 25 Field("name")) 23 tablename = "%s_%s" % (module, resource) 24 table = db.define_table(tablename, 25 Field("name"), 26 *s3_meta_fields()) 26 27 table.uuid.requires = IS_NOT_IN_DB(db, "%s.uuid" % table) 27 28 table.name.requires = IS_NOT_EMPTY()