21 Jul 06:01
Some modjy questions/proposals
From: Leo Soto M. <leo.soto <at> gmail.com>
Subject: Some modjy questions/proposals
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-07-21 04:01:42 GMT
Subject: Some modjy questions/proposals
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-07-21 04:01:42 GMT
Hello list, and specially Alan Kennedy ;)
I have been playing with modjy the weekend and have two small
questions/proposals:
1. I see that SCRIPT_NAME is directly set from getServletPath(). This
ignores the context path, which from what I understand from the WSGI
spec[1] ("The initial portion of the request URL's "path" that
corresponds to the application object, so that the application knows
its virtual "location""), should also be included. Also, looks like
the JRuby guys are also prepending the context root[2]. Or am I
missing something?
2. What about having a predefined directory analogous to WEB-INF/lib,
but for python code (i.e, to get added on sys.path). How about
WEB-INF/lib-python?
This way, we could have the following hierarchy inside WAR files:
.
|-- WEB-INF
| |-- classes
| |-- lib
| | |-- jython.jar
| | |-- modjy.jar
| | `-- postgresql-jdbc3-8.2.jar
| |-- lib-python
| | |-- django
| | |-- jython-lib.jar
| | `-- my_django_project
| `-- web.xml
(Continue reading)
RSS Feed