[web2py] Re: does Field attribiute unique=True work on GAE?

2013-03-26 Thread Christian Foster Howes
i do make use of the IS_NOT_IN_DB() validator. Note that you can still have duplicates if 2 requests are received by GAE at nearly the same time. assuming your requests are more than say 1 second apart, if IS_NOT_IN_DB() is failing i would consider it a bug. NOTE that GAE dev_appserver.py rele

[web2py] Re: does Field attribiute unique=True work on GAE?

2013-03-25 Thread Jaime Sempere
Sorry to bump this up, but I have not been able of using unique as it is described here (no validators). Also I have tried to use instead of unique IS_NOT_IN_DB as in this other thread is suggested: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/gae$20unique/web2py/ZepLjcBowZs/Fu

[web2py] Re: does Field attribiute unique=True work on GAE?

2010-09-23 Thread mdipierro
yes and no. It will not be enforced at the database level but if you do not specify validators, it will use it to pick default validator that enforce the uniqueness at the web2py level On Sep 23, 11:17 am, Carl wrote: > My db.py includes... > > db.define_table('voucher', >     Field('code', 'stri