Changes between Version 79 and Version 80 of DeveloperGuidelines/Tips


Ignore:
Timestamp:
12/07/09 23:31:02 (12 years ago)
Author:
Fran Boon
Comment:

Multiple field validation example

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Tips

    v79 v80  
    4848 * THIS_NOT_IN_DB custom validator: http://groups.google.com/group/web2py/browse_thread/thread/27b14433976c0540?pli=1
    4949 * IS_IN_DB (...,order_by=...): http://groups.google.com/group/web2py/browse_thread/thread/5fe6e343d115590d/2a8c38fccb2cf3cf#2a8c38fccb2cf3cf
     50 * Multiple field validation example:
     51{{{
     52db.Wedding.location.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db(db.Wedding.weddingDateTime == request.vars.weddingDateTime), 'Wedding.location', error_message="Date/Time for Venue is Booked")]
     53}}}
    5054 * CGI co-existence: http://groups.google.com/group/web2py/browse_thread/thread/1520b84d144f0b0c
    5155 * Inline Images in T2 CRUD: http://groups.google.com/group/web2py/browse_thread/thread/d954bf883baf7adc/3b55a819b425a741