Changes between Version 24 and Version 25 of S3/S3ReusableField


Ignore:
Timestamp:
06/12/14 11:41:51 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3ReusableField

    v24 v25  
    5656== Deactivate IS_EMPTY_OR ==
    5757
    58 To deactivate a '''{{{IS_NULL_OR}}}''' ('''{{{IS_EMPTY_OR}}}''') validator in the '''{{{S3ReusableField}}}''' when generating the '''{{{Field}}}''' instance, you can use the special attribute '''{{{empty}}}''':
     58To deactivate an '''{{{IS_EMPTY_OR}}}''' validator in the '''{{{S3ReusableField}}}''' when generating the '''{{{Field}}}''' instance, you can use the special attribute '''{{{empty}}}''':
    5959
    6060{{{#!python
    61 resourcename = "mytable"
    62 tablename = "%s_%s" % (module, resourcename)
    63 table = db.define_table(tablename,
    64                         ...,
    65                         person_id(empty=False), # inserts the person_id Field, but removes IS_NULL_OR from .requires
    66                         ...)
     61tablename = "my_table"
     62self.define_table(tablename,
     63                  ...,
     64                  # Inserts the person_id Field, but remove IS_EMPTY_OR from .requires:
     65                  person_id(empty=False),
     66                  ...)
    6767}}}
    68 
    6968== Multiple Widgets ==
    7069