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 jg...@apache.org on 2006/03/06 01:15:50 UTC

svn commit: r383438 - in /httpd/mod_python/branches/3.2.x: Doc/appendixc.tex test/test.py

Author: jgallacher
Date: Sun Mar  5 16:15:48 2006
New Revision: 383438

URL: http://svn.apache.org/viewcvs?rev=383438&view=rev
Log:
Backported DbmSession dbm file location fix. (MODPYTHON-119)

Modified:
    httpd/mod_python/branches/3.2.x/Doc/appendixc.tex
    httpd/mod_python/branches/3.2.x/test/test.py

Modified: httpd/mod_python/branches/3.2.x/Doc/appendixc.tex
URL: http://svn.apache.org/viewcvs/httpd/mod_python/branches/3.2.x/Doc/appendixc.tex?rev=383438&r1=383437&r2=383438&view=diff
==============================================================================
--- httpd/mod_python/branches/3.2.x/Doc/appendixc.tex (original)
+++ httpd/mod_python/branches/3.2.x/Doc/appendixc.tex Sun Mar  5 16:15:48 2006
@@ -9,7 +9,16 @@
       (\citetitle[http://issues.apache.org/jira/browse/MODPYTHON-78]{MODPYTHON-78})
       Added support for Apache 2.2.
   \end{itemize}
- 
+
+  Improvements
+
+  \begin{itemize}
+    \item
+      (\citetitle[http://issues.apache.org/jira/browse/MODPYTHON-119]{MODPYTHON-119})
+      DbmSession unit test no longer uses the default directory for the dbm file,
+      so the test will not interfer with the user's current apache instance.
+  \end{itemize}
+
   Bug Fixes
 
   \begin{itemize}

Modified: httpd/mod_python/branches/3.2.x/test/test.py
URL: http://svn.apache.org/viewcvs/httpd/mod_python/branches/3.2.x/test/test.py?rev=383438&r1=383437&r2=383438&view=diff
==============================================================================
--- httpd/mod_python/branches/3.2.x/test/test.py (original)
+++ httpd/mod_python/branches/3.2.x/test/test.py Sun Mar  5 16:15:48 2006
@@ -179,6 +179,7 @@
 SERVER_ROOT = TESTHOME
 CONFIG = os.path.join(TESTHOME, "conf", "test.conf")
 DOCUMENT_ROOT = os.path.join(TESTHOME, "htdocs")
+TMP_DIR = os.path.join(TESTHOME, "tmp")
 PORT = 0 # this is set in fundUnusedPort()
  
     
@@ -260,6 +261,10 @@
             shutil.rmtree(logs)
         os.mkdir(logs)
 
+        if os.path.exists(TMP_DIR):
+            shutil.rmtree(TMP_DIR)
+        os.mkdir(TMP_DIR)
+
     def makeConfig(self, append=""):
 
         # create config files, etc
@@ -1626,6 +1631,7 @@
                         Directory(DOCUMENT_ROOT,
                                   SetHandler("mod_python"),
                                   PythonHandler("tests::Session_Session"),
+                                  PythonOption('session_directory "%s"' % TMP_DIR),
                                   PythonDebug("On")))
         return str(c)
 
@@ -1664,6 +1670,7 @@
                         Directory(DOCUMENT_ROOT,
                                   SetHandler("mod_python"),
                                   PythonHandler("tests::Session_Session"),
+                                  PythonOption('session_directory "%s"' % TMP_DIR),
                                   PythonDebug("On")))
         return str(c)