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/11/12 19:21:20 UTC

svn commit: r332809 - /httpd/mod_python/trunk/Doc/modpython4.tex

Author: nlehuen
Date: Sat Nov 12 10:21:16 2005
New Revision: 332809

URL: http://svn.apache.org/viewcvs?rev=332809&view=rev
Log:
Documentation for apache.exists_config_define and apache.register_cleanup.

Modified:
    httpd/mod_python/trunk/Doc/modpython4.tex

Modified: httpd/mod_python/trunk/Doc/modpython4.tex
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/Doc/modpython4.tex?rev=332809&r1=332808&r2=332809&view=diff
==============================================================================
--- httpd/mod_python/trunk/Doc/modpython4.tex (original)
+++ httpd/mod_python/trunk/Doc/modpython4.tex Sat Nov 12 10:21:16 2005
@@ -394,6 +394,19 @@
 
 \end{funcdesc}
 
+\begin{funcdesc}{exists_config_define}{name}
+    This function returns True if the Apache server was launched
+    with the definition with the given \var{name}. This means
+    that you can test whether Apache was launched with the \code{-DFOOBAR}
+    parameter by calling \code{apache.exists_config_define('FOOBAR')}.
+\end{funcdesc}
+
+\begin{methoddesc}[server]{register_cleanup}{handler\optional{, data}}
+  Registers a cleanup. Equivalent to \function{req.register_cleanup()}
+  or \function{req.server.register_cleanup()}, except that a server or request
+  object is not required.
+\end{methoddesc}
+
 \begin{funcdesc}{config_tree}{}
   Returns the server-level configuration tree. This tree does not
   include directives from .htaccess files. This is a \emph{copy} of