On 7/27/06, Peter Bunyan <[EMAIL PROTECTED]> wrote:
happens to me too
which DB engine are you using? postgres? The same happens to me, when I try to add a duplicate, the web app hangs.
Should I fill a ticket with this?
does this happens to somebody else? with which DB engine?
IntegrityError This cause TG to lockup.
happens to me too
I was using code like this:
def defineActivity(self, name):
try:
result = Activity(name=name)
except:
result = Activity.byName(name)
return result
which I changed to this:
def defineActivity(self, name):
result = Activity.byName(name)
if result is None:
result = Activity(name=name)
return result
my app works now, but I am concerned that if I should throw such an
exception that TG will block.
which DB engine are you using? postgres? The same happens to me, when I try to add a duplicate, the web app hangs.
Should I fill a ticket with this?
does this happens to somebody else? with which DB engine?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

