Here is a regular requires is_in_db statement:

gov_org_query = (db.Organization.organizationPrimaryTypeID ==1)

db.GovOrgJurisdiction.organizationID.requires = IS_IN_DB(db(gov_org_query), 
'Organization.id', '%(organizationFullName)s',zero=T('choose one'))


is it more efficient to put these two in the controller so they are called 
only when used?

I don't understand if they would get executed needlessly if placed in the 
model if the function that needs it is not used for many sessions

thanks

Alex Glaros

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to