Python servlet?

dsavitsk dsavitsk at e-coli.net
Tue May 8 20:08:24 EDT 2001


I am writing an application where I need to come up with something like a
servlet (or a global ASA file w/ no timeout) to maintain persistant objects.
The clients use VB/Python to communicate over http with a
Win2k/Apache/mod_python server (although I am willing to look at different
server setups (but am stuck w/ windows for now)).

Each time a client starts it generates a GUID which is sent to the server.
The server creates an object insance (w/ the GUID as a dictionary key) which
needs to persist until the client tells it to be destroyed.  I thought about
a socket server, but that seems like more pain than i want.  I also thought
about Medusa, but am having trouble understanding the documentation.  The
only way I know to keep a python program going w/ out using all of the cpu
in a loop is to call the mainloop() in Tkinter (and i guess i am not totally
against this as a way to constantly display what is going on, but it seems
silly).

Does anyone have a suggestion on a way to do this as a mod_python handler,
or anything else?  for what its worth, there will never be more than 10
clients, and more realistically only a few at a time.

thank for suggestions,

doug





More information about the Python-list mailing list