Re: Persistent Python objects

2007-02-03 Thread Baczek
On 3 Lut, 20:58, "Tom" <[EMAIL PROTECTED]> wrote: > What do you suggest for this? If it needs to be a singleton, you could consider deploying under FastCGI, I believe the process is started only once and the real server acts simply as a proxy. But note that I _believe_, not know :) --~--~-

Re: Persistent Python objects

2007-02-03 Thread Jeremy Dunck
On 2/3/07, Tom <[EMAIL PROTECTED]> wrote: > > What do you suggest for this? > Is there a single shared state among all players, or is it per player? If the former, you must already have some way of managing concurrency, no? In any case, it sounds like maybe you want a Twisted.PerspectiveBroker:

Persistent Python objects

2007-02-03 Thread Tom
I have a web app which currently runs off Python's BaseHTTPServer. I want to deploy it under Django instead. It contains a Python object (the state of play of a board game) which lives in the process running the server. If I deploy under Django I'll need some way of keeping the object around be