Changes between Version 5 and Version 6 of S3/S3ReusableField


Ignore:
Timestamp:
12/01/10 21:06:09 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3ReusableField

    v5 v6  
    4242== Override Field Attributes ==
    4343
    44 You can override the field name and any of the field attributes in the S3ReusableField when generating the Field instance, by just re-specifying them:
     44You can override the name and any attributes when generating the '''{{{Field}}}''' instance, by just re-specifying them:
    4545
    4646{{{
     
    4949table = db.define_table(tablename,
    5050                        ...,
    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")
    5253                        ...,
    5354                        migrate=migrate)