I think I saw a way to append fields to table using only a variable, something like this in pseudocode:
variable auditFields = defineFields (unique_id =Field('unique_id','boolean',default=uuid.uuid4(),writable=False,readable=False), bla bla)
and now, for each table you can do:
db.define_table('mytable', other fields,.., auditFields)
I couldnt find it but I'm almost sure that I saw it.
0
aleksdj 15 years ago