gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] choice of web frameworks


From: lkcl
Subject: Re: [Gnumed-devel] choice of web frameworks
Date: Mon, 12 Jul 2010 13:44:55 -0700 (PDT)

rrrright.  i have at least a beginning:

git clone git://pyjs.org/git/multitaskhttpd.git

there are at present no other dependencies: multitask.py is included. 
basically it's a single-process server, bit messy because i haven't hacked
out half of the RTMP stuff from it yet, but it handles multiple HTTP
requests, includes doing keep-alives that actually work, and there is a demo
which will browse the current working directory as a simple http server
(based on, surpriise SimpleHTTPServer.py).

a session cookie is automatically added, which is used as a lookup to find
the in-memory app.

merging this with SimpleJSONRPCServer.py, and adding in a persistent psycopg
connection into the "client", this would be ready to use _now_.

but, you would only be able to use about 2 clients because of the pool
limiting on the gmPG2 code.

so, when i talked about looking up the session cookie id in a database
(using global database credentials) that's all gone, because every single
session is now stored in ONE process, in memory.  so, a single dictionary
can be used!  hooraaay.

this is utterly crazed, you do realise - but it will actually work.

i will add jsonrpc next, just for fits and giggles.  have to put in doPOST
copied from SimpleCGIServer.

l.
-- 
View this message in context: 
http://old.nabble.com/Re%3A--Gnumed-devel--choice-of-web-frameworks-tp29137242p29143764.html
Sent from the GnuMed - Dev mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]