Changes between Version 21 and Version 22 of S3/S3ReusableField


Ignore:
Timestamp:
06/12/14 11:38:49 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3ReusableField

    v21 v22  
    3030
    3131{{{#!python
    32 resourcename = "mytable"
    33 tablename = "%s_%s" % (module, resourcename)
     32tablename = "mytable"
    3433table = db.define_table(tablename,
    3534                        ...,
    36                         person_id(), # inserts a Field("person_id") with the pre-defined parameters
     35                        # Insert a Field("person_id") with the pre-defined parameters:
     36                        person_id(),
    3737                        ...)
    3838}}}