Re: [web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread Jonathan Lundell
On Jan 31, 2011, at 7:53 AM, AW wrote: > > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. Note that, besides unique, there are two other conditions that are enforced at the datab

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
test On Jan 31, 10:53 am, AW wrote: > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. > > On Jan 29, 7:33 pm, Anthony wrote: > > > > > > > > > On Saturday, January 29, 2011 6:59:

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
test On Jan 31, 10:53 am, AW wrote: > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. > > On Jan 29, 7:33 pm, Anthony wrote: > > > > > > > > > On Saturday, January 29, 2011 6:59:

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
Anthony, that's quite helpful advice. I'd suspected that has something to do with different errors and couldn't go as far as you showed in your post. Thanks. On Jan 29, 7:33 pm, Anthony wrote: > On Saturday, January 29, 2011 6:59:39 PM UTC-5, AW wrote: > > The following two lines of code are

[web2py] Re: A simple question about avoiding race condition

2011-01-29 Thread Anthony
On Saturday, January 29, 2011 6:59:39 PM UTC-5, AW wrote: > The following two lines of code are often used in the web2py book: > > 1. db.define_table('person', Field('name', unique=True)) > 2. db.person.name.requires = IS_NOT_IN_DB(db, 'person.name') > > Well, given that line 1 already avoids r