Changes between Version 41 and Version 42 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
08/07/11 17:22:22 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v41 v42  
    2121resource = "vehicle"
    2222
    23 tablename = module + "_" + resource
    24 table = db.define_table(tablename, timestamp, uuidstamp,
    25                 Field("name"))
     23tablename = "%s_%s" % (module, resource)
     24table = db.define_table(tablename,
     25                Field("name"),
     26                *s3_meta_fields())
    2627table.uuid.requires = IS_NOT_IN_DB(db, "%s.uuid" % table)
    2728table.name.requires = IS_NOT_EMPTY()