web.ctx values not seen in build-in web server?

7 views
Skip to first unread message

jlist9

unread,
Dec 26, 2009, 2:47:15 PM12/26/09
to we...@googlegroups.com
Hi,

I'm trying to patch web.py to add support for virtual hosts. In order to serve
static files from /static/<domain>/ I parse the domain name in GET/POST/etc.
calls and save it as web.ctx.domain. However, when the request is shoveled
down to web.httpserver.StaticApp.__iter__(), web.ctx is empty. Since web.ctx
is a thread local storage, I assume it's there. Without reading and
fully understanding
all the web.py source, I'm guessing it's cleared somewhere?

If this is not the right place to store this domain data, where else
should I put it?

Thanks,
Jack

Reply all
Reply to author
Forward
0 new messages