~ubuntu-branches/ubuntu/hardy/libapache2-mod-python/hardy

« back to all changes in this revision

Viewing changes to doc-html/hand-pub-intro.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2006-03-20 19:05:14 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060320190514-7gcx7mdusfp5it8r
Tags: 3.1.4-0ubuntu1
* Merge with Debian a little bit harder, minimising our diffs a bit.
* New upstream release, containing no changes other than the security
  fix for CVE-2005-0088 and an externally-visible module version bump.
* Tweak configure.in with upstream fix to resolve FTBFS with bash 3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
2
<html>
3
3
<head>
 
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="hand-pub-alg.html" />
 
11
<link rel="prev" href="hand-pub.html" />
 
12
<link rel="parent" href="hand-pub.html" />
 
13
<link rel="next" href="hand-pub-alg.html" />
 
14
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />
 
15
<meta name='aesop' content='information' />
4
16
<title>6.1.1 Introduction</title>
5
 
<META NAME="description" CONTENT="6.1.1 Introduction">
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="next" href="hand-pub-alg.html">
14
 
<LINK REL="previous" href="hand-pub.html">
15
 
<LINK REL="up" href="hand-pub.html">
16
 
<LINK REL="next" href="hand-pub-alg.html">
17
17
</head>
18
18
<body>
19
19
<DIV CLASS="navigation">
 
20
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
20
21
<table align="center" width="100%" cellpadding="0" cellspacing="2">
21
22
<tr>
22
 
<td><A href="hand-pub.html"><img src="icons/previous.gif"
23
 
  border="0" height="32"
24
 
  alt="Previous Page" width="32"></A></td>
25
 
<td><A href="hand-pub.html"><img src="icons/up.gif"
26
 
  border="0" height="32"
27
 
  alt="Up One Level" width="32"></A></td>
28
 
<td><A href="hand-pub-alg.html"><img src="icons/next.gif"
29
 
  border="0" height="32"
30
 
  alt="Next Page" width="32"></A></td>
 
23
<td class='online-navigation'><a rel="prev" title="6.1 Publisher Handler"
 
24
  href="hand-pub.html"><img src='previous.png'
 
25
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
 
26
<td class='online-navigation'><a rel="parent" title="6.1 Publisher Handler"
 
27
  href="hand-pub.html"><img src='up.png'
 
28
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
 
29
<td class='online-navigation'><a rel="next" title="6.1.2 The Publishing Algorithm"
 
30
  href="hand-pub-alg.html"><img src='next.png'
 
31
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
31
32
<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>
 
33
<td class='online-navigation'><a rel="contents" title="Table of Contents"
 
34
  href="contents.html"><img src='contents.png'
 
35
  border='0' height='32'  alt='Contents' width='32' /></A></td>
 
36
<td class='online-navigation'><img src='blank.png'
 
37
  border='0' height='32'  alt='' width='32' /></td>
 
38
<td class='online-navigation'><a rel="index" title="Index"
 
39
  href="genindex.html"><img src='index.png'
 
40
  border='0' height='32'  alt='Index' width='32' /></A></td>
41
41
</tr></table>
42
 
<b class="navlabel">Previous:</b> <a class="sectref" href="hand-pub.html">6.1 Publisher Handler</A>
43
 
<b class="navlabel">Up:</b> <a class="sectref" href="hand-pub.html">6.1 Publisher Handler</A>
44
 
<b class="navlabel">Next:</b> <a class="sectref" href="hand-pub-alg.html">6.1.2 The Publishing Algorithm</A>
45
 
<br><hr>
 
42
<div class='online-navigation'>
 
43
<b class="navlabel">Previous:</b>
 
44
<a class="sectref" rel="prev" href="hand-pub.html">6.1 Publisher Handler</A>
 
45
<b class="navlabel">Up:</b>
 
46
<a class="sectref" rel="parent" href="hand-pub.html">6.1 Publisher Handler</A>
 
47
<b class="navlabel">Next:</b>
 
48
<a class="sectref" rel="next" href="hand-pub-alg.html">6.1.2 The Publishing Algorithm</A>
 
49
</div>
 
50
<hr /></div>
46
51
</DIV>
47
52
<!--End of Navigation Panel-->
48
53
 
49
 
<H2><A NAME="SECTION008110000000000000000">&nbsp;</A>
 
54
<H2><A NAME="SECTION008110000000000000000"></A><A NAME="hand-pub-intro"></A>
50
55
<BR>
51
56
6.1.1 Introduction
52
57
</H2>
53
58
 
54
59
<P>
55
60
To use the handler, you need the following lines in your configuration
56
 
<dl><dd><pre class="verbatim">
 
61
<div class="verbatim"><pre>
57
62
  &lt;Directory /some/path&gt;
58
63
    SetHandler mod_python 
59
64
    PythonHandler mod_python.publisher
60
65
    &lt;/Directory&gt;
61
 
</pre></dl>
 
66
</pre></div>
62
67
 
63
68
<P>
64
69
This handler allows access to functions and variables within a module
66
71
<span class="file">hello.py</span>:
67
72
 
68
73
<P>
69
 
<dl><dd><pre class="verbatim">
 
74
<div class="verbatim"><pre>
70
75
  """ Publisher example """
71
76
 
72
77
  def say(req, what="NOTHING"):
73
78
  return "I am saying %s" % what
74
 
</pre></dl>
 
79
</pre></div>
75
80
 
76
81
<P>
77
82
A URL <code>http://www.mysite.com/hello.py/say</code> would return 
82
87
<P>
83
88
 
84
89
<DIV CLASS="navigation">
85
 
<p><hr>
 
90
<div class='online-navigation'>
 
91
<p></p><hr />
86
92
<table align="center" width="100%" cellpadding="0" cellspacing="2">
87
93
<tr>
88
 
<td><A href="hand-pub.html"><img src="icons/previous.gif"
89
 
  border="0" height="32"
90
 
  alt="Previous Page" width="32"></A></td>
91
 
<td><A href="hand-pub.html"><img src="icons/up.gif"
92
 
  border="0" height="32"
93
 
  alt="Up One Level" width="32"></A></td>
94
 
<td><A href="hand-pub-alg.html"><img src="icons/next.gif"
95
 
  border="0" height="32"
96
 
  alt="Next Page" width="32"></A></td>
 
94
<td class='online-navigation'><a rel="prev" title="6.1 Publisher Handler"
 
95
  href="hand-pub.html"><img src='previous.png'
 
96
  border='0' height='32'  alt='Previous Page' width='32' /></A></td>
 
97
<td class='online-navigation'><a rel="parent" title="6.1 Publisher Handler"
 
98
  href="hand-pub.html"><img src='up.png'
 
99
  border='0' height='32'  alt='Up One Level' width='32' /></A></td>
 
100
<td class='online-navigation'><a rel="next" title="6.1.2 The Publishing Algorithm"
 
101
  href="hand-pub-alg.html"><img src='next.png'
 
102
  border='0' height='32'  alt='Next Page' width='32' /></A></td>
97
103
<td align="center" width="100%">Mod_python Manual</td>
98
 
<td><A href="contents.html"><img src="icons/contents.gif"
99
 
  border="0" height="32"
100
 
  alt="Contents" width="32"></A></td>
101
 
<td><img src="icons/blank.gif"
102
 
  border="0" height="32"
103
 
  alt="" width="32"></td>
104
 
<td><A href="genindex.html"><img src="icons/index.gif"
105
 
  border="0" height="32"
106
 
  alt="Index" width="32"></A></td>
 
104
<td class='online-navigation'><a rel="contents" title="Table of Contents"
 
105
  href="contents.html"><img src='contents.png'
 
106
  border='0' height='32'  alt='Contents' width='32' /></A></td>
 
107
<td class='online-navigation'><img src='blank.png'
 
108
  border='0' height='32'  alt='' width='32' /></td>
 
109
<td class='online-navigation'><a rel="index" title="Index"
 
110
  href="genindex.html"><img src='index.png'
 
111
  border='0' height='32'  alt='Index' width='32' /></A></td>
107
112
</tr></table>
108
 
<b class="navlabel">Previous:</b> <a class="sectref" href="hand-pub.html">6.1 Publisher Handler</A>
109
 
<b class="navlabel">Up:</b> <a class="sectref" href="hand-pub.html">6.1 Publisher Handler</A>
110
 
<b class="navlabel">Next:</b> <a class="sectref" href="hand-pub-alg.html">6.1.2 The Publishing Algorithm</A>
111
 
<hr>
112
 
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
 
113
<div class='online-navigation'>
 
114
<b class="navlabel">Previous:</b>
 
115
<a class="sectref" rel="prev" href="hand-pub.html">6.1 Publisher Handler</A>
 
116
<b class="navlabel">Up:</b>
 
117
<a class="sectref" rel="parent" href="hand-pub.html">6.1 Publisher Handler</A>
 
118
<b class="navlabel">Next:</b>
 
119
<a class="sectref" rel="next" href="hand-pub-alg.html">6.1.2 The Publishing Algorithm</A>
 
120
</div>
 
121
</div>
 
122
<hr />
 
123
<span class="release-info">Release 3.1.3, documentation updated on January 29, 2005.</span>
113
124
</DIV>
114
125
<!--End of Navigation Panel-->
115
126