Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Roadmap
Search
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 11
and
Version 12
of
IS_ONE_OF
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
02/09/12 19:23:19 (
12 years
ago)
Author:
Fran Boon
Comment:
--
Legend:
Unmodified
Added
Removed
Modified
IS_ONE_OF
v11
v12
28
28
Example:
29
29
{{{
30
...
31
db.Field("pe_id", db.pr_pentity),
32
...
33
34
30
db[table].pe_id.requires = IS_NULL_OR(IS_ONE_OF(db,
35
31
"pr_pentity.pe_id", # key table=pr_pentity, key field=pe_id