You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/08/10 12:15:51 UTC
svn commit: r231208 -
/httpd/mod_python/trunk/lib/python/mod_python/publisher.py
Author: nlehuen
Date: Wed Aug 10 03:15:47 2005
New Revision: 231208
URL: http://svn.apache.org/viewcvs?rev=231208&view=rev
Log:
Commented out mod_python.publisher.get_page().
Modified:
httpd/mod_python/trunk/lib/python/mod_python/publisher.py
Modified: httpd/mod_python/trunk/lib/python/mod_python/publisher.py
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/lib/python/mod_python/publisher.py?rev=231208&r1=231207&r2=231208&view=diff
==============================================================================
--- httpd/mod_python/trunk/lib/python/mod_python/publisher.py (original)
+++ httpd/mod_python/trunk/lib/python/mod_python/publisher.py Wed Aug 10 03:15:47 2005
@@ -80,30 +80,30 @@
####################### Interface to the published page cache ##################
-def get_page(req, path):
- """
- This imports a published page. If the path is absolute it is used as is.
- If it is a relative path it is relative to the published page
- where the request is really handled (not relative to the path
- given in the URL).
-
- Warning : in order to maintain consistency in case of module reloading,
- do not store the resulting module in a place that outlives the request
- duration.
- """
-
- real_filename = req.filename
-
- try:
- if isabs(path):
- req.filename = path
- else:
- req.filename = normpath(join(dirname(req.filename), path))
-
- return page_cache[req]
-
- finally:
- req.filename = real_filename
+# def get_page(req, path):
+# """
+# This imports a published page. If the path is absolute it is used as is.
+# If it is a relative path it is relative to the published page
+# where the request is really handled (not relative to the path
+# given in the URL).
+#
+# Warning : in order to maintain consistency in case of module reloading,
+# do not store the resulting module in a place that outlives the request
+# duration.
+# """
+#
+# real_filename = req.filename
+#
+# try:
+# if isabs(path):
+# req.filename = path
+# else:
+# req.filename = normpath(join(dirname(req.filename), path))
+#
+# return page_cache[req]
+#
+# finally:
+# req.filename = real_filename
####################### The publisher handler himself ##########################