Changes between Version 8 and Version 9 of IS_ONE_OF
- Timestamp:
- 09/06/10 10:12:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IS_ONE_OF
v8 v9 29 29 {{{ 30 30 ... 31 db.Field( 'pr_pe_id', db.pr_pentity),31 db.Field("pr_pe_id", db.pr_pentity), 32 32 ... 33 33 34 34 db[table].pr_pe_id.requires = IS_NULL_OR(IS_ONE_OF(db, 35 'pr_pentity.id', # key table=pr_pentity, key field=id35 "pr_pentity.id", # key table=pr_pentity, key field=id 36 36 shn_pentity_represent, # function to represent a pr_pentity entry as string 37 filterby='opt_pr_pentity_class', # type field in the pr_pentity table 38 filter_opts=(1,) # select only entries with opt_pr_pentity_class in (1,) (select only persons) 37 filterby="opt_pr_pentity_class", # type field in the pr_pentity table 38 filter_opts=(1,), # select only entries with opt_pr_pentity_class in (1,) (select only persons) 39 orderby="pr_pentity.id" # NB Need explicit orderby, otherwise it orders by all fields! 39 40 )) 40 41 }}}