opened an issue https://github.com/web2py/pydal/issues/302

On Saturday, 17 October 2015 11:32:58 UTC-5, David Manns wrote:
>
> My application runs on GAE and has been running on 2.9.12. In conjunction 
> with some application changes decided to update web2py to latest version 
> 2.12.3.
>
> Runs fine in web2py test environment.
>
> In both production and SDK GAE various pages fail. 
>
> This failure relates to using a set in a validator:
>
> ...
> banks = db(db.CoA.Type == 'Bank')
>
> form=SQLFORM.factory(
> Field('bank', 'reference CoA', requires=IS_EMPTY_OR(IS_IN_DB(banks, 
> 'CoA.id','%(Name)s'))),
> ...
>
> In the model:
>
>
> db.define_table('CoA',
> Field('Type', 'string', default='Expense', requires = IS_IN_SET(['Bank', 
> 'Asset/Liability', 'Revenue/Expense'])),
> Field('Name', 'string', unique = True),
> Field('Balance', 'decimal(9,2)'), #used to maintain PayPal and Bank 
> balances
> Field('Notes', 'text'),
> format='%(Name)s')
> db.CoA.Name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, 'CoA.Name')]
>
> GAE SDK log error attached.
>
> Works fine in web2py test environment, and in GAE with 2.9.12
>
>
>

-- 
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