Changes between Version 5 and Version 6 of S3/S3ReusableField
- Timestamp:
- 12/01/10 21:06:09 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3ReusableField
v5 v6 42 42 == Override Field Attributes == 43 43 44 You can override the field name and any of the field attributes in the S3ReusableField when generating the Fieldinstance, by just re-specifying them:44 You can override the name and any attributes when generating the '''{{{Field}}}''' instance, by just re-specifying them: 45 45 46 46 {{{ … … 49 49 table = db.define_table(tablename, 50 50 ..., 51 person_id("reporter"), # inserts a Field("reporter") with the attributes from person_id 51 person_id("reporter", # inserts a Field("reporter") with the attributes from person_id, 52 label=T("Reporter")), # but replaces the label attribute by T("Reporter") 52 53 ..., 53 54 migrate=migrate)