On Oct 27, 2011, at 9:03 AM, Robert Forkel wrote:

> why not query the database first to see whether the chosen name
> already exists? That's what i do in a validator function for a deform
> form. Other than the potentially superfluous database query I see no
> downside to this.
> regards
> robert

Robert,

Thanks for the reply. I did consider this as an option, but the problem is that 
there is a (very) small window of opportunity for a conflicting row to be added 
by another user between the check and the actual insert, which would still 
result in the IntegrityError exception.

Thanks again,
Mark

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to