#mandatory_fields = self.db.fields(self.table_name, notnull = True, hasdef = False)
#for field in mandatory_fields:
# if not self.has_key(field) or self[field] is None:
#mandatory_fields = self.db.fields(self.table_name, notnull = True, hasdef = False)
#for field in mandatory_fields:
# if not self.has_key(field) or self[field] is None: