On 6/7/06, mulicheng <[EMAIL PROTECTED]> wrote:

Is there a way with Turbogears to synchronize a specific method.  I
have a method that will perform a specific operation in the database.

The database part will be sync, since all users use the same connection. and unless I'm mistaken you can't send 2 requests at the same time. 

It needs to be able to be called by any user at any time, but the
requests need to operate one at a time.

each TG-db interaction is wrap inside a transaction so this wont be a problem.

I could import Lock from threading.. but that doesn't seem like a very
nice thing to do to cherrypy.

or sqlobject.

Thoughts?

 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to