1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>5.1.13 PythonCleanupHandler</title>
5
<META NAME="description" CONTENT="5.1.13 PythonCleanupHandler">
6
<META NAME="keywords" CONTENT="modpython">
7
<META NAME="resource-type" CONTENT="document">
8
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="previous" href="dir-handlers-plh.html">
14
<LINK REL="up" href="dir-handlers.html">
15
<LINK REL="next" href="dir-filter.html">
18
<DIV CLASS="navigation">
19
<table align="center" width="100%" cellpadding="0" cellspacing="2">
21
<td><A href="dir-handlers-plh.html"><img src="icons/previous.gif"
22
border="0" height="32"
23
alt="Previous Page" width="32"></A></td>
24
<td><A href="dir-handlers.html"><img src="icons/up.gif"
25
border="0" height="32"
26
alt="Up One Level" width="32"></A></td>
27
<td><A href="dir-filter.html"><img src="icons/next.gif"
28
border="0" height="32"
29
alt="Next Page" width="32"></A></td>
30
<td align="center" width="100%">Mod_python Manual</td>
31
<td><A href="contents.html"><img src="icons/contents.gif"
32
border="0" height="32"
33
alt="Contents" width="32"></A></td>
34
<td><img src="icons/blank.gif"
35
border="0" height="32"
36
alt="" width="32"></td>
37
<td><A href="genindex.html"><img src="icons/index.gif"
38
border="0" height="32"
39
alt="Index" width="32"></A></td>
41
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-handlers-plh.html">5.1.12 PythonLogHandler</A>
42
<b class="navlabel">Up:</b> <a class="sectref" href="dir-handlers.html">5.1 Request Handlers</A>
43
<b class="navlabel">Next:</b> <a class="sectref" href="dir-filter.html">5.2 Filters</A>
46
<!--End of Navigation Panel-->
48
<H2><A NAME="SECTION0071130000000000000000"> </A>
49
<a name="l2h-235"> </a>
51
5.1.13 PythonCleanupHandler
55
<b><em class="citetitle"><a
56
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax"
59
<i>Python*Handler Syntax</i>
60
<BR><em class="citetitle"><a
61
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Context"
64
server config, virtual host, directory, htaccess
65
<BR><em class="citetitle"><a
66
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Override"
70
<BR><em class="citetitle"><a
71
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Module"
77
This is the very last handler, called just before the request object
78
is destroyed by Apache.
81
Unlike all the other handlers, the return value of this handler is
82
ignored. Any errors will be logged to the error log, but will not be
83
sent to the client, even if PythonDebug is On.
86
This handler is not a valid argument to the <code>rec.add_handler()</code>
87
function. For dynamic clean up registration, use
88
<code>req.register_cleanup()</code>.
91
Once cleanups have started, it is not possible to register more of
92
them. Therefore, <code>req.register_cleanup()</code> has no effect within this
96
Cleanups registered with this directive will execute <i>after</i> cleanups
97
registered with <code>req.register_cleanup()</code>.
101
<DIV CLASS="navigation">
103
<table align="center" width="100%" cellpadding="0" cellspacing="2">
105
<td><A href="dir-handlers-plh.html"><img src="icons/previous.gif"
106
border="0" height="32"
107
alt="Previous Page" width="32"></A></td>
108
<td><A href="dir-handlers.html"><img src="icons/up.gif"
109
border="0" height="32"
110
alt="Up One Level" width="32"></A></td>
111
<td><A href="dir-filter.html"><img src="icons/next.gif"
112
border="0" height="32"
113
alt="Next Page" width="32"></A></td>
114
<td align="center" width="100%">Mod_python Manual</td>
115
<td><A href="contents.html"><img src="icons/contents.gif"
116
border="0" height="32"
117
alt="Contents" width="32"></A></td>
118
<td><img src="icons/blank.gif"
119
border="0" height="32"
120
alt="" width="32"></td>
121
<td><A href="genindex.html"><img src="icons/index.gif"
122
border="0" height="32"
123
alt="Index" width="32"></A></td>
125
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-handlers-plh.html">5.1.12 PythonLogHandler</A>
126
<b class="navlabel">Up:</b> <a class="sectref" href="dir-handlers.html">5.1 Request Handlers</A>
127
<b class="navlabel">Next:</b> <a class="sectref" href="dir-filter.html">5.2 Filters</A>
129
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
131
<!--End of Navigation Panel-->