Revision: 6867
http://jython.svn.sourceforge.net/jython/?rev=6867&view=rev
Author: amak
Date: 2009-10-17 16:10:18 +0000 (Sat, 17 Oct 2009)
Log Message:
-----------
Adding a sample config value for load_site_packages.
Modified Paths:
--------------
trunk/jython/Demo/modjy_webapp/WEB-INF/web.xml
Modified: trunk/jython/Demo/modjy_webapp/WEB-INF/web.xml
===================================================================
--- trunk/jython/Demo/modjy_webapp/WEB-INF/web.xml 2009-10-17 16:03:45 UTC (rev 6866)
+++ trunk/jython/Demo/modjy_webapp/WEB-INF/web.xml 2009-10-17 16:10:18 UTC (rev 6867)
@@ -6,7 +6,7 @@
<display-name>modjy demo application</display-name>
<description>
- modjy WSGI demo application
+ modjy WSGI demo application
</description>
<servlet>
@@ -15,58 +15,67 @@
<init-param>
<param-name>python.home</param-name>
<param-value>C:/jython2.5</param-value>
- </init-param>
-<!--
- There are two different ways you can specify an application to modjy
- 1. Using the app_import_name mechanism
- 2. Using a combination of app_directory/app_filename/app_callable_name
- Examples of both are given below
- See the documenation for more details.
+ </init-param>
+<!--
+ There are two different ways you can specify an application to modjy
+ 1. Using the app_import_name mechanism
+ 2. Using a combination of app_directory/app_filename/app_callable_name
+ Examples of both are given below
+ See the documenation for more details.
http://modjy.xhaus.com/locating.html#locating_callables
--->
-<!--
- This is the app_import_name mechanism. If you specify a value
- for this variable, then it will take precedence over the other mechanism
+-->
+<!--
+ This is the app_import_name mechanism. If you specify a value
+ for this variable, then it will take precedence over the other mechanism
<init-param>
<param-name>app_import_name</param-name>
<param-value>my_wsgi_module.my_handler_class().handler_method</param-value>
- </init-param>
+ </init-param>
-->
-<!--
- And this is the app_directory/app_filename/app_callable_name combo
- The defaults for these three variables are ""/application.py/handler
- So if you specify no values at all for any of app_* variables, then modjy
- will by default look for "handler" in "application.py" in the servlet
- context root.
+<!--
+ And this is the app_directory/app_filename/app_callable_name combo
+ The defaults for these three variables are ""/application.py/handler
+ So if you specify no values at all for any of app_* variables, then modjy
+ will by default look for "handler" in "application.py" in the servlet
+ context root.
<init-param>
<param-name>app_directory</param-name>
<param-value>some_sub_directory</param-value>
- </init-param>
+ </init-param>
-->
<init-param>
<param-name>app_filename</param-name>
<param-value>demo_app.py</param-value>
</init-param>
-<!--
- Supply a value for this parameter if you want your application
- callable to have a different name than the default.
+<!--
+ Supply a value for this parameter if you want your application
+ callable to have a different name than the default.
<init-param>
<param-name>app_callable_name</param-name>
<param-value>my_handler_func</param-value>
</init-param>
--->
- <!-- Do you want application callables to be cached? -->
+-->
+ <!-- Do you want application callables to be cached? -->
<init-param>
<param-name>cache_callables</param-name>
<param-value>1</param-value>
- </init-param>
- <!-- Should the application be reloaded if it's .py file changes? -->
+ </init-param>
+ <!-- Should the application be reloaded if it's .py file changes? -->
<!-- Does not work with the app_import_name mechanism -->
<init-param>
<param-name>reload_on_mod</param-name>
<param-value>1</param-value>
</init-param>
+ <!--
+ Is site-packages to be loaded through imp.load("site")?
+ Same as -S option to command line interpreter
+ -->
<init-param>
+ <param-name>load_site_packages</param-name>
+ <param-value>1</param-value>
+<!-- <param-value>0</param-value> -->
+ </init-param>
+ <init-param>
<param-name>log_level</param-name>
<param-value>debug</param-value>
<!-- <param-value>info</param-value> -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|