El Tea schrieb:
> Thanks, that was exactly what I wanted! Everything I would want to
> remove would indeed be during that single request/response cycle.
> I've since learned I might be able to get the same effect by throwing
> an exception, but again, I'm lacking documentation and I don't know if
> I would have to catch it myself or what exception specifically to
> throw.
>
> I would still welcome any information on locking a table (even though
> it's not actually required in my case). I understand your comment
> about slowing down the system, as well as deadlocks.
from sqlalchemy.sql import text
DBSession.execute(text("lock table %s" % tablename))
Diez
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---