Changes between Version 17 and Version 18 of S3/S3ReusableField
- Timestamp:
- 08/07/11 17:28:34 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3ReusableField
v17 v18 13 13 sortby = ["first_name", "middle_name", "last_name"], 14 14 requires = IS_NULL_OR(IS_ONE_OF(db, "pr_person.id", 15 shn_pr_person_represent,15 person_represent, 16 16 orderby="pr_person.first_name", 17 17 sort=True, 18 18 error_message="Person must be specified!")), 19 19 represent = lambda id: (id and \ 20 [ shn_pr_person_represent(id)] or [NONE])[0],20 [person_represent(id)] or [NONE])[0], 21 21 label = T("Person"), 22 22 comment = shn_person_id_comment, 23 23 ondelete = "RESTRICT", 24 widget = S3PersonAutocompleteWidget( request))24 widget = S3PersonAutocompleteWidget()) 25 25 }}} 26 26