Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 15533144ea879a3ee7f2cdcbb31e4859 > files > 90

apache-mod_python-doc-3.3.1-12mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="modpython.css" type='text/css' />
<link rel="first" href="modpython.html" title='Mod_python Manual' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="pyapi-util.html" />
<link rel="prev" href="pyapi-conn.html" />
<link rel="parent" href="pythonapi.html" />
<link rel="next" href="pyapi-apmeth.html" />
<meta name='aesop' content='information' />
<title>4.5 apache - Access to Apache Internals.</title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="4.4 Overview of a"
  href="pyapi-conn.html"><img src='previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="4. Python API"
  href="pythonapi.html"><img src='up.png'
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="4.5.1 Functions"
  href="pyapi-apmeth.html"><img src='next.png'
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='contents.png'
  border='0' height='32'  alt='Contents' width='32' /></A></td>
<td class='online-navigation'><img src='blank.png'
  border='0' height='32'  alt='' width='32' /></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='index.png'
  border='0' height='32'  alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="pyapi-conn.html">4.4 Overview of a</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="pythonapi.html">4. Python API</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="pyapi-apmeth.html">4.5.1 Functions</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION006500000000000000000">
4.5 <tt class="module">apache</tt> - Access to Apache Internals.</A>
</H1>
<A NAME="module-apache"></A>

<P>
The Python interface to Apache internals is contained in a module
appropriately named <tt class="module">apache</tt>, located inside the
<tt class="module">mod_python</tt> package. This module provides some important
objects that map to Apache internal structures, as well as some useful
functions, all documented below. (The request object also provides an
interface to Apache internals, it is covered in its own section of
this manual.)

<P>
<a id='l2h-30' xml:id='l2h-30'></a> The <tt class="module">apache</tt> module can only be
imported by a script running under mod_python. This is because it
depends on a built-in module <tt class="module">_apache</tt> provided by
mod_python.

<P>
It is best imported like this:

<P>
<div class="verbatim"><pre>
from mod_python import apache
</pre></div>

<P>
<tt class="module">mod_python.apache</tt> module defines the following functions and
objects. For a more in-depth look at Apache internals, see the
<em class="citetitle"><a
 href="http://httpd.apache.org/dev/"
 title="Apache Developer page"
 >Apache Developer page</a></em>

<P>

<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>

<UL CLASS="ChildLinks">
<LI><A href="pyapi-apmeth.html">4.5.1 Functions</a>
<LI><A href="pyapi-apmem.html">4.5.2 Attributes</a>
<LI><A href="pyapi-mptable.html">4.5.3 Table Object (mp_table)<a id='l2h-43' xml:id='l2h-43'></a></a>
<LI><A href="pyapi-mprequest.html">4.5.4 Request Object<a id='l2h-47' xml:id='l2h-47'></a></a>
<UL>
<LI><A href="pyapi-mprequest-meth.html">4.5.4.1 Request Methods</a>
<LI><A href="pyapi-mprequest-mem.html">4.5.4.2 Request Members</a>
</ul>
<LI><A href="pyapi-mpconn.html">4.5.5 Connection Object (mp_conn)<a id='l2h-144' xml:id='l2h-144'></a></a>
<UL>
<LI><A href="pyapi-mpconn-meth.html">4.5.5.1 Connection Methods</a>
<LI><A href="pyapi-mpconn-mem.html">4.5.5.2 Connection Members</a>
</ul>
<LI><A href="pyapi-mpfilt.html">4.5.6 Filter Object (mp_filter)<a id='l2h-166' xml:id='l2h-166'></a></a>
<UL>
<LI><A href="pyapi-mpfilt-meth.html">4.5.6.1 Filter Methods</a>
<LI><A href="pyapi-mpfilt-mem.html">4.5.6.2 Filter Members</a>
</ul>
<LI><A href="pyapi-mpserver.html">4.5.7 Server Object (mp_server)<a id='l2h-179' xml:id='l2h-179'></a></a>
<UL>
<LI><A href="pyapi-mpsrv-meth.html">4.5.7.1 Server Methods</a>
<LI><A href="pyapi-mpsrv-mem.html">4.5.7.2 Server Members</a>
</ul></ul>
<!--End of Table of Child-Links-->
</div>

<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="4.4 Overview of a"
  href="pyapi-conn.html"><img src='previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="4. Python API"
  href="pythonapi.html"><img src='up.png'
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="4.5.1 Functions"
  href="pyapi-apmeth.html"><img src='next.png'
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='contents.png'
  border='0' height='32'  alt='Contents' width='32' /></A></td>
<td class='online-navigation'><img src='blank.png'
  border='0' height='32'  alt='' width='32' /></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='index.png'
  border='0' height='32'  alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="pyapi-conn.html">4.4 Overview of a</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="pythonapi.html">4. Python API</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="pyapi-apmeth.html">4.5.1 Functions</A>
</div>
</div>
<hr />
<span class="release-info">Release 3.3.1, documentation updated on January 29, 2007.</span>
</DIV>
<!--End of Navigation Panel-->

</BODY>
</HTML>