1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>4.5.6.1 Server Methods</title>
5
<META NAME="description" CONTENT="4.5.6.1 Server Methods">
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="next" href="pyapi-mpsrv-mem.html">
11
<LINK REL="prev" href="pyapi-mpserver.html">
12
<LINK REL="parent" href="pyapi-mpserver.html">
13
<LINK REL="next" href="pyapi-mpsrv-mem.html">
14
<meta name='aesop' content='information'>
15
<META NAME="description" CONTENT="Server Methods">
6
16
<META NAME="keywords" CONTENT="modpython">
7
17
<META NAME="resource-type" CONTENT="document">
8
18
<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="next" href="pyapi-mpsrv-mem.html">
14
<LINK REL="previous" href="pyapi-mpserver.html">
15
<LINK REL="up" href="pyapi-mpserver.html">
16
<LINK REL="next" href="pyapi-mpsrv-mem.html">
19
<title>4.5.6.1 Server Methods</title>
19
22
<DIV CLASS="navigation">
20
23
<table align="center" width="100%" cellpadding="0" cellspacing="2">
22
<td><A href="pyapi-mpserver.html"><img src="icons/previous.gif"
23
border="0" height="32"
24
alt="Previous Page" width="32"></A></td>
25
<td><A href="pyapi-mpserver.html"><img src="icons/up.gif"
26
border="0" height="32"
27
alt="Up One Level" width="32"></A></td>
28
<td><A href="pyapi-mpsrv-mem.html"><img src="icons/next.gif"
29
border="0" height="32"
30
alt="Next Page" width="32"></A></td>
25
<td><a rel="prev" title="4.5.6 Server Object (mp_server) "
26
href="pyapi-mpserver.html"><img src='previous.gif'
27
border='0' height='32' alt='Previous Page' width='32'></A></td>
28
<td><a rel="parent" title="4.5.6 Server Object (mp_server) "
29
href="pyapi-mpserver.html"><img src='up.gif'
30
border='0' height='32' alt='Up One Level' width='32'></A></td>
31
<td><a rel="next" title="4.5.6.2 Server Members"
32
href="pyapi-mpsrv-mem.html"><img src='next.gif'
33
border='0' height='32' alt='Next Page' width='32'></A></td>
31
34
<td align="center" width="100%">Mod_python Manual</td>
32
<td><A href="contents.html"><img src="icons/contents.gif"
33
border="0" height="32"
34
alt="Contents" width="32"></A></td>
35
<td><img src="icons/blank.gif"
36
border="0" height="32"
37
alt="" width="32"></td>
38
<td><A href="genindex.html"><img src="icons/index.gif"
39
border="0" height="32"
40
alt="Index" width="32"></A></td>
35
<td><a rel="contents" title="Table of Contents"
36
href="contents.html"><img src='contents.gif'
37
border='0' height='32' alt='Contents' width='32'></A></td>
38
<td><img src='blank.gif'
39
border='0' height='32' alt='' width='32'></td>
40
<td><a rel="index" title="Index"
41
href="genindex.html"><img src='index.gif'
42
border='0' height='32' alt='Index' width='32'></A></td>
42
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
43
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
44
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpsrv-mem.html">4.5.6.2 Server Members</A>
44
<b class="navlabel">Previous:</b>
45
<a class="sectref" rel="prev" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
46
<b class="navlabel">Up:</b>
47
<a class="sectref" rel="parent" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
48
<b class="navlabel">Next:</b>
49
<a class="sectref" rel="next" href="pyapi-mpsrv-mem.html">4.5.6.2 Server Members</A>
47
52
<!--End of Navigation Panel-->
55
<dl><dt><b><a name="l2h-147"><tt class="method">get_config</tt></a></b>()
60
<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
61
<td><nobr><b><a name="l2h-165"><tt class="method">get_config</tt></a></b>(</nobr></td>
62
<td>)</td></tr></table>
57
64
Similar to <code>req.get_config()</code>, but returns a config pointed to
58
65
by <code>server->module_config</code> Apache config vector.
62
<dl><dt><b><a name="l2h-148"><tt class="method">register_cleanup</tt></a></b>(<var>request, callable</var><big>[</big><var>, data</var><big>]</big>)
69
<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
70
<td><nobr><b><a name="l2h-166"><tt class="method">get_options</tt></a></b>(</nobr></td>
71
<td>)</td></tr></table>
73
Similar to <code>req.get_options()</code>, but returns a table object holding
74
only the mod_python options defined at global scope within the Apache
75
configuration. That is, outside of the context of any VirtualHost, Location,
76
Directory or Files directives.
80
<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
81
<td><nobr><b><a name="l2h-167"><tt class="method">register_cleanup</tt></a></b>(</nobr></td>
82
<td><var>request, callable</var><big>[</big><var>, data</var><big>]</big>)</td></tr></table>
64
84
Registers a cleanup. Very similar to <tt class="function">req.register_cleanup()</tt>, except
65
85
this cleanup will be executed at child termination time. This function
73
93
<table align="center" width="100%" cellpadding="0" cellspacing="2">
75
<td><A href="pyapi-mpserver.html"><img src="icons/previous.gif"
76
border="0" height="32"
77
alt="Previous Page" width="32"></A></td>
78
<td><A href="pyapi-mpserver.html"><img src="icons/up.gif"
79
border="0" height="32"
80
alt="Up One Level" width="32"></A></td>
81
<td><A href="pyapi-mpsrv-mem.html"><img src="icons/next.gif"
82
border="0" height="32"
83
alt="Next Page" width="32"></A></td>
95
<td><a rel="prev" title="4.5.6 Server Object (mp_server) "
96
rel="prev" title="4.5.6 Server Object (mp_server) "
97
href="pyapi-mpserver.html"><img src='previous.gif'
98
border='0' height='32' alt='Previous Page' width='32'></A></td>
99
<td><a rel="parent" title="4.5.6 Server Object (mp_server) "
100
rel="parent" title="4.5.6 Server Object (mp_server) "
101
href="pyapi-mpserver.html"><img src='up.gif'
102
border='0' height='32' alt='Up One Level' width='32'></A></td>
103
<td><a rel="next" title="4.5.6.2 Server Members"
104
rel="next" title="4.5.6.2 Server Members"
105
href="pyapi-mpsrv-mem.html"><img src='next.gif'
106
border='0' height='32' alt='Next Page' width='32'></A></td>
84
107
<td align="center" width="100%">Mod_python Manual</td>
85
<td><A href="contents.html"><img src="icons/contents.gif"
86
border="0" height="32"
87
alt="Contents" width="32"></A></td>
88
<td><img src="icons/blank.gif"
89
border="0" height="32"
90
alt="" width="32"></td>
91
<td><A href="genindex.html"><img src="icons/index.gif"
92
border="0" height="32"
93
alt="Index" width="32"></A></td>
108
<td><a rel="contents" title="Table of Contents"
109
rel="contents" title="Table of Contents"
110
href="contents.html"><img src='contents.gif'
111
border='0' height='32' alt='Contents' width='32'></A></td>
112
<td><img src='blank.gif'
113
border='0' height='32' alt='' width='32'></td>
114
<td><a rel="index" title="Index"
115
rel="index" title="Index"
116
href="genindex.html"><img src='index.gif'
117
border='0' height='32' alt='Index' width='32'></A></td>
95
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
96
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
97
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpsrv-mem.html">4.5.6.2 Server Members</A>
119
<b class="navlabel">Previous:</b>
120
<a class="sectref" rel="prev" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
121
<b class="navlabel">Up:</b>
122
<a class="sectref" rel="parent" href="pyapi-mpserver.html">4.5.6 Server Object (mp_server) </A>
123
<b class="navlabel">Next:</b>
124
<a class="sectref" rel="next" href="pyapi-mpsrv-mem.html">4.5.6.2 Server Members</A>
99
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
126
<span class="release-info">Release 3.2.10, documentation updated on July 19, 2006.</span>
101
128
<!--End of Navigation Panel-->