Am 03.05.2011 17:51 schrieb Paul Kraus:
import_flag.flag_value = 1
transaction.commit()
... # Do stuff
import_flag.flag_value = 0
transaction.commit()
You probably need to re-add import_flag to the session after the first
commit because it empties the session, i.e.
DBSession.add(import_flag)
Anyway, a semaphore or lock seems to be a better solution.
-- Christoph
--
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.