On Friday, July 15, 2011 12:27:19 PM UTC-4, Anthony wrote: 
>
> The table format string/function should be stored in its ._format 
> attribute, so you might also be able to do:
>  
> db.audienceInstances.instances.requires=IS_IN_DB(db(db.instance.type==auth.user.product),
>  
> 'instance.id',db.instance._format,multiple=True)
>
 
 
In fact, it looks like this is what the DAL does by default -- but since you 
have overridden the default validator, you have to specify 
db.instance._format explicitly.
 
Anthony
 

Reply via email to