File: node1.html

package info (click to toggle)
cherrypy 0.10-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,324 kB
  • ctags: 1,759
  • sloc: python: 14,411; sh: 6,915; perl: 2,472; makefile: 76
file content (204 lines) | stat: -rw-r--r-- 9,747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contents</title>
<META NAME="description" CONTENT="Contents">
<META NAME="keywords" CONTENT="howto">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="howto.css" type='text/css'>
<link rel="first" href="howto.html">
<link rel="contents" href="contents.html" title="Contents">

<LINK REL="next" HREF="node2.html">
<LINK REL="previous" HREF="howto.html">
<LINK REL="up" HREF="howto.html">
<LINK REL="next" HREF="node2.html">
<meta name='aesop' content='information'>
</head>
<body>
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="howto.html"><img src="../icons/previous.gif"
  border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A HREF="howto.html"><img src="../icons/up.gif"
  border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A HREF="node2.html"><img src="../icons/next.gif"
  border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">CherryPy HowTo</td>
<td><img src="../icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
<td><img src="../icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="howto.html">CherryPy HowTo</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="howto.html">CherryPy HowTo</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node2.html">1. How to serve</A>
<br><hr>
</DIV>
<!--End of Navigation Panel-->
<BR>
<BR><H2><A NAME="SECTION001000000000000000000">
Contents</A>
</H2>
<!--Table of Contents-->

<UL CLASS="TofC">
<LI><A href="node2.html">1. How to serve gzip-compressed pages with CherryPy</a>
<LI><A href="node3.html">2. How to run a CherryPy server behind Apache</a>
<UL>
<LI><A href="node3.html#SECTION003100000000000000000">2.1 Introduction</a>
<LI><A href="node3.html#SECTION003200000000000000000">2.2 Using persistent CGI</a>
<UL>
<LI><A href="node3.html#SECTION003210000000000000000">2.2.1 Example</a>
</ul>
<LI><A href="node3.html#SECTION003300000000000000000">2.3 Using FastCGI</a>
<UL>
<LI><A href="node3.html#SECTION003310000000000000000">2.3.1 Example</a>
</ul>
<LI><A href="node3.html#SECTION003400000000000000000">2.4 Using mod_rewrite</a>
<UL>
<LI><A href="node3.html#SECTION003410000000000000000">2.4.1 Example</a>
</ul>
</ul>
<LI><A href="node4.html">3. How to connect a CherryPy server to a database</a>
<LI><A href="node5.html">4. How to use load-balancing for your web site</a>
<UL>
<LI><A href="node5.html#SECTION005100000000000000000">4.1 Introduction</a>
<LI><A href="node5.html#SECTION005200000000000000000">4.2 Generic load-balancing method</a>
<LI><A href="node5.html#SECTION005300000000000000000">4.3 Multi-processor, unix-based machine</a>
</ul>
<LI><A href="node6.html">5. How to compile your code in debug mode</a>
<LI><A href="node7.html">6. How to use the hotReload feature of CherryPy</a>
<UL>
<LI><A href="node7.html#SECTION007100000000000000000">6.1 Introduction</a>
<LI><A href="node7.html#SECTION007200000000000000000">6.2 How does it work ?</a>
<LI><A href="node7.html#SECTION007300000000000000000">6.3 How to use it ?</a>
</ul>
<LI><A href="node8.html">7. How to use caching</a>
<UL>
<LI><A href="node8.html#SECTION008100000000000000000">7.1 Introduction to caching</a>
<LI><A href="node8.html#SECTION008200000000000000000">7.2 Caching with CherryPy</a>
<UL>
<LI><A href="node8.html#SECTION008210000000000000000">7.2.1 Where are pages stored ?</a>
<LI><A href="node8.html#SECTION008220000000000000000">7.2.2 How does it know if a page is already in the cache ?</a>
<LI><A href="node8.html#SECTION008230000000000000000">7.2.3 How do I control which pages I want to cache or not ?</a>
<LI><A href="node8.html#SECTION008240000000000000000">7.2.4 How do I control when the cache is purged ?</a>
</ul>
</ul>
<LI><A href="node9.html">8. How can webdesigners and webdevelopers collaborate on a CherryPy project</a>
<UL>
<LI><A href="node9.html#SECTION009100000000000000000">8.1 Introduction</a>
<LI><A href="node9.html#SECTION009200000000000000000">8.2 How can they collaborate ?</a>
<LI><A href="node9.html#SECTION009300000000000000000">8.3 Example</a>
</ul>
<LI><A href="node10.html">9. How to use SSL with CherryPy</a>
<UL>
<LI><A href="node10.html#SECTION0010100000000000000000">9.1 Introduction</a>
<LI><A href="node10.html#SECTION0010200000000000000000">9.2 Prerequisite</a>
<LI><A href="node10.html#SECTION0010300000000000000000">9.3 Configuring the CherryPy server</a>
</ul>
<LI><A href="node11.html">10. How to use XML/XSL with CherryPy</a>
<UL>
<LI><A href="node11.html#SECTION0011100000000000000000">10.1 Introduction</a>
<LI><A href="node11.html#SECTION0011200000000000000000">10.2 Prerequisite</a>
<LI><A href="node11.html#SECTION0011300000000000000000">10.3 Using the XML/XSL package from CherryPy</a>
</ul>
<LI><A href="node12.html">11. How to use AOP (Aspect Oriented Programing) with CherryPy</a>
<UL>
<LI><A href="node12.html#SECTION0012100000000000000000">11.1 Introduction</a>
<LI><A href="node12.html#SECTION0012200000000000000000">11.2 Basic example</a>
<LI><A href="node12.html#SECTION0012300000000000000000">11.3 How is it used in CookieAuthenticate and HttpAuthenticate</a>
</ul>
<LI><A href="node13.html">12. How to create a spinning server and then debug it</a>
<UL>
<LI><A href="node13.html#SECTION0013100000000000000000">12.1 Creating a spinning server</a>
<LI><A href="node13.html#SECTION0013200000000000000000">12.2 Debugging a spinning server</a>
</ul>
<LI><A href="node14.html">13. How to create an XML-RPC server with CherryPy</a>
<UL>
<LI><A href="node14.html#SECTION0014100000000000000000">13.1 Basic Example</a>
<LI><A href="node14.html#SECTION0014200000000000000000">13.2 Multiple Servers</a>
</ul>
<LI><A href="node15.html">14. How to make hidden masks or views</a>
<UL>
<LI><A href="node15.html#SECTION0015100000000000000000">14.1 Introduction</a>
<LI><A href="node15.html#SECTION0015200000000000000000">14.2 How it works</a>
</ul>
<LI><A href="node16.html">15. How to control logs</a>
<LI><A href="node17.html">16. How to use sessions</a>
<UL>
<LI><A href="node17.html#SECTION0017100000000000000000">16.1 Introduction to sessions</a>
<LI><A href="node17.html#SECTION0017200000000000000000">16.2 Possible implementations for sessions</a>
<LI><A href="node17.html#SECTION0017300000000000000000">16.3 Sessions implementation in CherryPy</a>
<LI><A href="node17.html#SECTION0017400000000000000000">16.4 Configuration variables used to control sessions</a>
<LI><A href="node17.html#SECTION0017500000000000000000">16.5 Cleaning up old sessions</a>
<LI><A href="node17.html#SECTION0017600000000000000000">16.6 Using sessions in your code</a>
<LI><A href="node17.html#SECTION0017700000000000000000">16.7 Example</a>
<LI><A href="node17.html#SECTION0017800000000000000000">16.8 Storing session data in a database (or anywhere else)</a>
</ul>
<LI><A href="node18.html">17. How to use Psyco with CherryPy</a>
<LI><A href="node19.html">18. How to use cookies with CherryPy</a>
<UL>
<LI><A href="node19.html#SECTION0019100000000000000000">18.1 Setting cookies</a>
<LI><A href="node19.html#SECTION0019200000000000000000">18.2 Reading cookies</a>
</ul>
<LI><A href="node20.html">19. How to use Cheetah templates with CherryPy</a>
<LI><A href="node21.html">20. How to use streaming with CherryPy</a>
<LI><A href="node22.html">21. Sample deployment configuration for a real-world website</a>
<UL>
<LI><A href="node22.html#SECTION0022100000000000000000">21.1 Hardware</a>
<LI><A href="node22.html#SECTION0022200000000000000000">21.2 Software environment</a>
<LI><A href="node22.html#SECTION0022300000000000000000">21.3 CherryPy version</a>
<LI><A href="node22.html#SECTION0022400000000000000000">21.4 CherryPy server configuration</a>
<LI><A href="node22.html#SECTION0022500000000000000000">21.5 CherryPy server deployment</a>
<LI><A href="node22.html#SECTION0022600000000000000000">21.6 Database configuration</a>
<LI><A href="node22.html#SECTION0022700000000000000000">21.7 Sessions</a>
<LI><A href="node22.html#SECTION0022800000000000000000">21.8 Results</a>
</ul>
<LI><A href="node23.html">22. How to stream uploaded files directly to disk</a>
<LI><A href="node24.html">About this document ...</a>
</ul>
<!--End of Table of Contents-->
<P>

<DIV CLASS="navigation">
<p><hr>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="howto.html"><img src="../icons/previous.gif"
  border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A HREF="howto.html"><img src="../icons/up.gif"
  border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A HREF="node2.html"><img src="../icons/next.gif"
  border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">CherryPy HowTo</td>
<td><img src="../icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
<td><img src="../icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="howto.html">CherryPy HowTo</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="howto.html">CherryPy HowTo</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node2.html">1. How to serve</A>
<hr>
<span class="release-info">Release 0.10, documentation updated on 19 March 2004.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>