1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<link rel="STYLESHEET" href="modpython.css" type='text/css'>
5
<link rel="first" href="modpython.html" title='Mod_python Manual'>
6
<link rel='contents' href='contents.html' title="Contents">
7
<link rel='index' href='genindex.html' title='Index'>
8
<link rel='last' href='about.html' title='About this document...'>
9
<link rel='help' href='about.html' title='About this document...'>
10
<LINK REL="prev" href="dir-filter-if.html">
11
<LINK REL="parent" href="dir-filter.html">
12
<LINK REL="next" href="dir-conn.html">
13
<meta name='aesop' content='information'>
14
<META NAME="description" CONTENT="PythonOutputFilter">
15
<META NAME="keywords" CONTENT="modpython">
16
<META NAME="resource-type" CONTENT="document">
17
<META NAME="distribution" CONTENT="global">
4
<link rel="STYLESHEET" href="modpython.css" type='text/css' />
5
<link rel="first" href="modpython.html" title='Mod_python Manual' />
6
<link rel='contents' href='contents.html' title="Contents" />
7
<link rel='index' href='genindex.html' title='Index' />
8
<link rel='last' href='about.html' title='About this document...' />
9
<link rel='help' href='about.html' title='About this document...' />
10
<link rel="prev" href="dir-filter-if.html" />
11
<link rel="parent" href="dir-filter.html" />
12
<link rel="next" href="dir-conn.html" />
13
<meta name='aesop' content='information' />
18
14
<title>5.2.2 PythonOutputFilter</title>
21
17
<DIV CLASS="navigation">
18
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22
19
<table align="center" width="100%" cellpadding="0" cellspacing="2">
24
<td><a rel="prev" title="5.2.1 PythonInputFilter"
25
href="dir-filter-if.html"><img src='previous.gif'
26
border='0' height='32' alt='Previous Page' width='32'></A></td>
27
<td><a rel="parent" title="5.2 Filters"
28
href="dir-filter.html"><img src='up.gif'
29
border='0' height='32' alt='Up One Level' width='32'></A></td>
30
<td><a rel="next" title="5.3 Connection Handler"
31
href="dir-conn.html"><img src='next.gif'
32
border='0' height='32' alt='Next Page' width='32'></A></td>
21
<td class='online-navigation'><a rel="prev" title="5.2.1 PythonInputFilter"
22
href="dir-filter-if.html"><img src='previous.png'
23
border='0' height='32' alt='Previous Page' width='32' /></A></td>
24
<td class='online-navigation'><a rel="parent" title="5.2 Filters"
25
href="dir-filter.html"><img src='up.png'
26
border='0' height='32' alt='Up One Level' width='32' /></A></td>
27
<td class='online-navigation'><a rel="next" title="5.3 Connection Handler"
28
href="dir-conn.html"><img src='next.png'
29
border='0' height='32' alt='Next Page' width='32' /></A></td>
33
30
<td align="center" width="100%">Mod_python Manual</td>
34
<td><a rel="contents" title="Table of Contents"
35
href="contents.html"><img src='contents.gif'
36
border='0' height='32' alt='Contents' width='32'></A></td>
37
<td><img src='blank.gif'
38
border='0' height='32' alt='' width='32'></td>
39
<td><a rel="index" title="Index"
40
href="genindex.html"><img src='index.gif'
41
border='0' height='32' alt='Index' width='32'></A></td>
31
<td class='online-navigation'><a rel="contents" title="Table of Contents"
32
href="contents.html"><img src='contents.png'
33
border='0' height='32' alt='Contents' width='32' /></A></td>
34
<td class='online-navigation'><img src='blank.png'
35
border='0' height='32' alt='' width='32' /></td>
36
<td class='online-navigation'><a rel="index" title="Index"
37
href="genindex.html"><img src='index.png'
38
border='0' height='32' alt='Index' width='32' /></A></td>
40
<div class='online-navigation'>
43
41
<b class="navlabel">Previous:</b>
44
42
<a class="sectref" rel="prev" href="dir-filter-if.html">5.2.1 PythonInputFilter</A>
45
43
<b class="navlabel">Up:</b>
46
44
<a class="sectref" rel="parent" href="dir-filter.html">5.2 Filters</A>
47
45
<b class="navlabel">Next:</b>
48
46
<a class="sectref" rel="next" href="dir-conn.html">5.3 Connection Handler</A>
51
50
<!--End of Navigation Panel-->
53
<H2><A NAME="SECTION007220000000000000000"> </A>
54
<a name="l2h-259"> </a>
52
<H2><A NAME="SECTION007220000000000000000"></A><A NAME="dir-filter-of"></A>
53
<a id='l2h-282' xml:id='l2h-282'></a>
56
55
5.2.2 PythonOutputFilter
60
<b><em class="citetitle"><a
59
<strong><em class="citetitle"><a
61
60
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax"
62
>Syntax:</a></em></strong>
64
63
PythonOutputFilter handler name
65
64
<BR><em class="citetitle"><a
66
65
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Context"
84
The <var>module</var> referred to by the handler can be a full module name
85
(package dot notation is accepted) or an actual path to a module code file.
86
The module is loaded using the mod_python module importer as implemented by
87
the <code>apache.import_module()</code> function. Reference should be made to the
88
documentation of that function for further details of how module importing
85
92
To activate the filter, use the <code>AddOutputFilter</code> directive.
89
96
<DIV CLASS="navigation">
97
<div class='online-navigation'>
91
99
<table align="center" width="100%" cellpadding="0" cellspacing="2">
93
<td><a rel="prev" title="5.2.1 PythonInputFilter"
94
rel="prev" title="5.2.1 PythonInputFilter"
95
href="dir-filter-if.html"><img src='previous.gif'
96
border='0' height='32' alt='Previous Page' width='32'></A></td>
97
<td><a rel="parent" title="5.2 Filters"
98
rel="parent" title="5.2 Filters"
99
href="dir-filter.html"><img src='up.gif'
100
border='0' height='32' alt='Up One Level' width='32'></A></td>
101
<td><a rel="next" title="5.3 Connection Handler"
102
rel="next" title="5.3 Connection Handler"
103
href="dir-conn.html"><img src='next.gif'
104
border='0' height='32' alt='Next Page' width='32'></A></td>
101
<td class='online-navigation'><a rel="prev" title="5.2.1 PythonInputFilter"
102
href="dir-filter-if.html"><img src='previous.png'
103
border='0' height='32' alt='Previous Page' width='32' /></A></td>
104
<td class='online-navigation'><a rel="parent" title="5.2 Filters"
105
href="dir-filter.html"><img src='up.png'
106
border='0' height='32' alt='Up One Level' width='32' /></A></td>
107
<td class='online-navigation'><a rel="next" title="5.3 Connection Handler"
108
href="dir-conn.html"><img src='next.png'
109
border='0' height='32' alt='Next Page' width='32' /></A></td>
105
110
<td align="center" width="100%">Mod_python Manual</td>
106
<td><a rel="contents" title="Table of Contents"
107
rel="contents" title="Table of Contents"
108
href="contents.html"><img src='contents.gif'
109
border='0' height='32' alt='Contents' width='32'></A></td>
110
<td><img src='blank.gif'
111
border='0' height='32' alt='' width='32'></td>
112
<td><a rel="index" title="Index"
113
rel="index" title="Index"
114
href="genindex.html"><img src='index.gif'
115
border='0' height='32' alt='Index' width='32'></A></td>
111
<td class='online-navigation'><a rel="contents" title="Table of Contents"
112
href="contents.html"><img src='contents.png'
113
border='0' height='32' alt='Contents' width='32' /></A></td>
114
<td class='online-navigation'><img src='blank.png'
115
border='0' height='32' alt='' width='32' /></td>
116
<td class='online-navigation'><a rel="index" title="Index"
117
href="genindex.html"><img src='index.png'
118
border='0' height='32' alt='Index' width='32' /></A></td>
120
<div class='online-navigation'>
117
121
<b class="navlabel">Previous:</b>
118
122
<a class="sectref" rel="prev" href="dir-filter-if.html">5.2.1 PythonInputFilter</A>
119
123
<b class="navlabel">Up:</b>
120
124
<a class="sectref" rel="parent" href="dir-filter.html">5.2 Filters</A>
121
125
<b class="navlabel">Next:</b>
122
126
<a class="sectref" rel="next" href="dir-conn.html">5.3 Connection Handler</A>
124
<span class="release-info">Release 3.2.10, documentation updated on July 19, 2006.</span>
130
<span class="release-info">Release 3.3.1, documentation updated on January 29, 2007.</span>
126
132
<!--End of Navigation Panel-->