Hi all!
Is it possible to have multiple transactions within a request, and how to start new one after transaction.commit() is manually invoked?
But maybe I'm asking wrong question. What I'm trying to do is database-based process locking. A request must check for this lock (basically a field in the database must be False) obtain it (set that field to True, COMMIT!) and do some processing (interact with db some more, COMMIT), release the lock (COMMIT), or return with no processing if the lock cannot be obtained. The atomicity of the field value is ensured with select ... for update.
Or maybe I'm off the mark altogether? -- .oO V Oo. -- 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.
