gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] multitaskhttpd experiment


From: lkcl
Subject: [Gnumed-devel] multitaskhttpd experiment
Date: Tue, 13 Jul 2010 12:10:57 -0700 (PDT)

ok, i added in use of multitaskhttpd, which you can get from
git clone address@hidden/git/multitaskhttpd.git
then copy to /usr/lib/python2.N/site-packages or other suitable location in
sys.path so that it can be "import multitaskhttpd"'d

patch is at http://lkcl.net/gnumed/0001-add-multitaskhttpd-example.patch

start with ./gm-xxxxxx.sh --ui=mtweb

it is ironic: now you can log in, but the jsonrpclib test suite doesn't do
cookies, so the screen debug log quickly fills with multiple app instances,
four per each use of testjsonrpc.py!

also, irony: if you do any database-style operations first (alter
testjsonrpc.py to try it), and you have only just started the UI, you get
prompted at the command-line for a psycopg2 username/pass!

but if you reverse the test, then *all* database queries go through the same
user credentials!  exactly _not_ what you should be doing :)

so i am forced to implement a 2nd-tier threaded / process architecture
*behind* this front-level one, most likely using SocketServer.

eeeuw! :)

ok i remember lovely-jsonrpc
http://code.google.com/p/lovely-jsonrpc/source/checkout
it supports cookies, it will solve the testing problem with jsonrpclib.tgz

l.

-- 
View this message in context: 
http://old.nabble.com/multitaskhttpd-experiment-tp29154568p29154568.html
Sent from the GnuMed - Dev mailing list archive at Nabble.com.




reply via email to

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