1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.web.woven.widgets.KeyedList</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.web.html">Package web</a> ::
34
<a href="twisted.web.woven.html">Package woven</a> ::
35
<a href="twisted.web.woven.widgets.html">Module widgets</a> ::
39
<td><table cellpadding="0" cellspacing="0">
40
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.web.woven.widgets.KeyedList.html" target="_top">no frames</a>]</font></td></tr>
44
<!-- =========== START OF CLASS DESCRIPTION =========== -->
45
<h2 class="class">Class KeyedList</h2>
47
<pre class="base-tree">
48
<a href="twisted.web.woven.view.View.html"><code>View</code></a> --+
50
<a href="twisted.web.woven.widgets.Widget.html"><code>Widget</code></a> --+
52
<a href="twisted.web.woven.widgets.List.html"><code>List</code></a> --+
59
<p>I am a widget which knows how to display the values stored within a
60
Python dictionary..</p>
61
A KeyedList should be specified in the template HTML as so:
62
<pre class="literalblock">
63
| <ul model="blah" view="KeyedList">
64
| <li pattern="emptyList">This will be displayed if the list is
66
| <li pattern="keyedListItem" view="Text">Foo</li>
69
I can take advantage of <code>listHeader</code>,
70
<code>listFooter</code> and <code>emptyList</code> items just as a <a
71
href="twisted.web.woven.widgets.List.html"
72
class="link"><code>List</code></a> can.
76
<!-- =========== START OF METHOD SUMMARY =========== -->
77
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
78
<tr bgcolor="#70b0f0" class="summary">
79
<th colspan="2">Method Summary</th></tr>
80
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
81
<td><code><a name="_iterateData"></a><span class="summary-sig"><span class="summary-sig-name">_iterateData</span>(<span class=summary-sig-arg>self</span>,
82
<span class=summary-sig-arg>parentNode</span>,
83
<span class=summary-sig-arg>submodel</span>,
84
<span class=summary-sig-arg>data</span>)</span></code>
86
<tr bgcolor="#e8f0f8" class="group">
87
<th colspan="2"> Inherited from List</th></tr>
88
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
89
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.List.html#generateDOM" class="summary-sig-name"><code>generateDOM</code></a>(<span class=summary-sig-arg>self</span>,
90
<span class=summary-sig-arg>request</span>,
91
<span class=summary-sig-arg>node</span>)</span></code>
93
Return a DOM Node to replace the Node in the template that this Widget
95
<tr bgcolor="#e8f0f8" class="group">
96
<th colspan="2"> Inherited from Widget</th></tr>
97
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
98
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
99
<span class=summary-sig-arg>model</span>,
100
<span class=summary-sig-arg>submodel</span>,
101
<span class=summary-sig-arg>setup</span>,
102
<span class=summary-sig-arg>controller</span>,
103
<span class=summary-sig-arg>viewStack</span>,
104
<span class="summary-sig-vararg">*args</span>,
105
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
107
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
108
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#__getitem__" class="summary-sig-name"><code>__getitem__</code></a>(<span class=summary-sig-arg>self</span>,
109
<span class=summary-sig-arg>item</span>)</span></code>
111
Convenience syntax for getting an attribute from the resultant DOM
112
Node of this widget.</td></tr>
113
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
114
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#__setitem__" class="summary-sig-name"><code>__setitem__</code></a>(<span class=summary-sig-arg>self</span>,
115
<span class=summary-sig-arg>item</span>,
116
<span class=summary-sig-arg>value</span>)</span></code>
118
Convenience syntax for adding attributes to the resultant DOM Node of
119
this widget.</td></tr>
120
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
121
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#_regenerate" class="summary-sig-name"><code>_regenerate</code></a>(<span class=summary-sig-arg>self</span>,
122
<span class=summary-sig-arg>request</span>,
123
<span class=summary-sig-arg>node</span>,
124
<span class=summary-sig-arg>data</span>)</span></code>
126
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
127
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#_reset" class="summary-sig-name"><code>_reset</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
129
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
130
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#add" class="summary-sig-name"><code>add</code></a>(<span class=summary-sig-arg>self</span>,
131
<span class=summary-sig-arg>item</span>)</span></code>
133
Add `item' to the children of the resultant DOM Node of this
135
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
136
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#addEventHandler" class="summary-sig-name"><code>addEventHandler</code></a>(<span class=summary-sig-arg>self</span>,
137
<span class=summary-sig-arg>eventName</span>,
138
<span class=summary-sig-arg>handler</span>,
139
<span class="summary-sig-vararg">*args</span>)</span></code>
141
Add an event handler to this widget.</td></tr>
142
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
143
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#addUpdateMethod" class="summary-sig-name"><code>addUpdateMethod</code></a>(<span class=summary-sig-arg>self</span>,
144
<span class=summary-sig-arg>updateMethod</span>)</span></code>
146
Add a method to this widget that will be called when the widget is
147
being rendered.</td></tr>
148
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
149
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#appendChild" class="summary-sig-name"><code>appendChild</code></a>(<span class=summary-sig-arg>self</span>,
150
<span class=summary-sig-arg>item</span>)</span></code>
152
Add `item' to the children of the resultant DOM Node of this
154
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
155
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#cleanNode" class="summary-sig-name"><code>cleanNode</code></a>(<span class=summary-sig-arg>self</span>,
156
<span class=summary-sig-arg>node</span>)</span></code>
158
Do your part, prevent infinite recursion!</td></tr>
159
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
160
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#generate" class="summary-sig-name"><code>generate</code></a>(<span class=summary-sig-arg>self</span>,
161
<span class=summary-sig-arg>request</span>,
162
<span class=summary-sig-arg>node</span>)</span></code>
164
Allow a view to be used like a widget.</td></tr>
165
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
166
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#getAllPatterns" class="summary-sig-name"><code>getAllPatterns</code></a>(<span class=summary-sig-arg>self</span>,
167
<span class=summary-sig-arg>name</span>,
168
<span class=summary-sig-arg>default</span>,
169
<span class=summary-sig-arg>clone</span>,
170
<span class=summary-sig-arg>deep</span>)</span></code>
172
Get all nodes below this one which have a matching pattern
174
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
175
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#__getitem__" class="summary-sig-name"><code>getAttribute</code></a>(<span class=summary-sig-arg>self</span>,
176
<span class=summary-sig-arg>item</span>)</span></code>
178
Convenience syntax for getting an attribute from the resultant DOM
179
Node of this widget.</td></tr>
180
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
181
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#getData" class="summary-sig-name"><code>getData</code></a>(<span class=summary-sig-arg>self</span>,
182
<span class=summary-sig-arg>request</span>)</span></code>
184
I have a model; however since I am a widget I am only responsible for
185
a portion of that model.</td></tr>
186
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
187
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#getPattern" class="summary-sig-name"><code>getPattern</code></a>(<span class=summary-sig-arg>self</span>,
188
<span class=summary-sig-arg>name</span>,
189
<span class=summary-sig-arg>default</span>,
190
<span class=summary-sig-arg>clone</span>,
191
<span class=summary-sig-arg>deep</span>)</span></code>
193
Get a named slot from the incoming template node.</td></tr>
194
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
195
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#getTopModel" class="summary-sig-name"><code>getTopModel</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
197
Get a reference to this page's top model object.</td></tr>
198
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
199
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#initialize" class="summary-sig-name"><code>initialize</code></a>(<span class=summary-sig-arg>self</span>,
200
<span class="summary-sig-vararg">*args</span>,
201
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
203
Use this method instead of __init__ to initialize your Widget, so you
204
don't have to deal with calling the __init__ of the superclass.</td></tr>
205
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
206
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#insert" class="summary-sig-name"><code>insert</code></a>(<span class=summary-sig-arg>self</span>,
207
<span class=summary-sig-arg>index</span>,
208
<span class=summary-sig-arg>item</span>)</span></code>
210
Insert `item' at `index' in the children list of the resultant DOM
211
Node of this widget.</td></tr>
212
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
213
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#modelChanged" class="summary-sig-name"><code>modelChanged</code></a>(<span class=summary-sig-arg>self</span>,
214
<span class=summary-sig-arg>payload</span>)</span></code>
216
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
217
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#onEvent" class="summary-sig-name"><code>onEvent</code></a>(<span class=summary-sig-arg>self</span>,
218
<span class=summary-sig-arg>request</span>,
219
<span class=summary-sig-arg>eventName</span>,
220
<span class="summary-sig-vararg">*args</span>)</span></code>
222
Dispatch a client-side event to an event handler that was registered
223
using addEventHandler.</td></tr>
224
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
225
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#__setitem__" class="summary-sig-name"><code>setAttribute</code></a>(<span class=summary-sig-arg>self</span>,
226
<span class=summary-sig-arg>item</span>,
227
<span class=summary-sig-arg>value</span>)</span></code>
229
Convenience syntax for adding attributes to the resultant DOM Node of
230
this widget.</td></tr>
231
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
232
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setData" class="summary-sig-name"><code>setData</code></a>(<span class=summary-sig-arg>self</span>,
233
<span class=summary-sig-arg>request</span>,
234
<span class=summary-sig-arg>data</span>)</span></code>
236
If the return value of <a
237
href="twisted.web.woven.widgets.Widget.html#getData"
238
class="link"><code>getData</code></a> is a Deferred, I am called when the
239
result of the Deferred is available.</td></tr>
240
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
241
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setDataCallback" class="summary-sig-name"><code>setDataCallback</code></a>(<span class=summary-sig-arg>self</span>,
242
<span class=summary-sig-arg>result</span>,
243
<span class=summary-sig-arg>request</span>,
244
<span class=summary-sig-arg>node</span>)</span></code>
246
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
247
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setError" class="summary-sig-name"><code>setError</code></a>(<span class=summary-sig-arg>self</span>,
248
<span class=summary-sig-arg>request</span>,
249
<span class=summary-sig-arg>message</span>)</span></code>
251
Convenience method for allowing a Controller to report an error to the
253
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
254
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setNode" class="summary-sig-name"><code>setNode</code></a>(<span class=summary-sig-arg>self</span>,
255
<span class=summary-sig-arg>node</span>)</span></code>
257
Set a node for this widget to use instead of creating one
258
programatically.</td></tr>
259
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
260
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setSubmodel" class="summary-sig-name"><code>setSubmodel</code></a>(<span class=summary-sig-arg>self</span>,
261
<span class=summary-sig-arg>submodel</span>)</span></code>
263
I use the submodel to know which attribute in self.model I am
264
responsible for</td></tr>
265
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
266
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#setUp" class="summary-sig-name"><code>setUp</code></a>(<span class=summary-sig-arg>self</span>,
267
<span class=summary-sig-arg>request</span>,
268
<span class=summary-sig-arg>node</span>,
269
<span class=summary-sig-arg>data</span>)</span></code>
271
Override this method to set up your Widget prior to generateDOM.</td></tr>
272
<tr bgcolor="#e8f0f8" class="group">
273
<th colspan="2"> Inherited from View</th></tr>
274
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
275
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#dispatchResult" class="summary-sig-name"><code>dispatchResult</code></a>(<span class=summary-sig-arg>self</span>,
276
<span class=summary-sig-arg>request</span>,
277
<span class=summary-sig-arg>node</span>,
278
<span class=summary-sig-arg>result</span>)</span></code>
280
Check a given result from handling a node and look up a NodeMutator
281
adapter which will convert the result into a node and insert it into the
283
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
284
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#dispatchResultCallback" class="summary-sig-name"><code>dispatchResultCallback</code></a>(<span class=summary-sig-arg>self</span>,
285
<span class=summary-sig-arg>result</span>,
286
<span class=summary-sig-arg>request</span>,
287
<span class=summary-sig-arg>node</span>)</span></code>
289
Deal with a callback from a deferred, checking to see if it is ok to
290
send the page yet or not.</td></tr>
291
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
292
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getChild" class="summary-sig-name"><code>getChild</code></a>(<span class=summary-sig-arg>self</span>,
293
<span class=summary-sig-arg>path</span>,
294
<span class=summary-sig-arg>request</span>)</span></code>
296
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
297
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getChildWithDefault" class="summary-sig-name"><code>getChildWithDefault</code></a>(<span class=summary-sig-arg>self</span>,
298
<span class=summary-sig-arg>path</span>,
299
<span class=summary-sig-arg>request</span>)</span></code>
301
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
302
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getNodeController" class="summary-sig-name"><code>getNodeController</code></a>(<span class=summary-sig-arg>self</span>,
303
<span class=summary-sig-arg>request</span>,
304
<span class=summary-sig-arg>node</span>,
305
<span class=summary-sig-arg>submodel</span>,
306
<span class=summary-sig-arg>model</span>)</span></code>
308
Get a controller object to handle this node.</td></tr>
309
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
310
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getNodeModel" class="summary-sig-name"><code>getNodeModel</code></a>(<span class=summary-sig-arg>self</span>,
311
<span class=summary-sig-arg>request</span>,
312
<span class=summary-sig-arg>node</span>,
313
<span class=summary-sig-arg>submodel</span>)</span></code>
315
Get the model object associated with this node.</td></tr>
316
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
317
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getNodeView" class="summary-sig-name"><code>getNodeView</code></a>(<span class=summary-sig-arg>self</span>,
318
<span class=summary-sig-arg>request</span>,
319
<span class=summary-sig-arg>node</span>,
320
<span class=summary-sig-arg>submodel</span>,
321
<span class=summary-sig-arg>model</span>)</span></code>
323
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
324
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getSubview" class="summary-sig-name"><code>getSubview</code></a>(<span class=summary-sig-arg>self</span>,
325
<span class=summary-sig-arg>request</span>,
326
<span class=summary-sig-arg>node</span>,
327
<span class=summary-sig-arg>model</span>,
328
<span class=summary-sig-arg>viewName</span>)</span></code>
330
Get a sub-view from me.</td></tr>
331
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
332
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#getTemplate" class="summary-sig-name"><code>getTemplate</code></a>(<span class=summary-sig-arg>self</span>,
333
<span class=summary-sig-arg>request</span>)</span></code>
335
Override this if you want to have your subclass look up its template
336
using a different method.</td></tr>
337
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
338
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#handleControllerResults" class="summary-sig-name"><code>handleControllerResults</code></a>(<span class=summary-sig-arg>self</span>,
339
<span class=summary-sig-arg>controllerResult</span>,
340
<span class=summary-sig-arg>request</span>,
341
<span class=summary-sig-arg>node</span>,
342
<span class=summary-sig-arg>controller</span>,
343
<span class=summary-sig-arg>view</span>)</span></code>
345
Handle a deferred from a controller.</td></tr>
346
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
347
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#handleDocument" class="summary-sig-name"><code>handleDocument</code></a>(<span class=summary-sig-arg>self</span>,
348
<span class=summary-sig-arg>request</span>,
349
<span class=summary-sig-arg>document</span>)</span></code>
351
Handle the root node, and send the page if there are no outstanding
352
callbacks when it returns.</td></tr>
353
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
354
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#handleNewNode" class="summary-sig-name"><code>handleNewNode</code></a>(<span class=summary-sig-arg>self</span>,
355
<span class=summary-sig-arg>request</span>,
356
<span class=summary-sig-arg>returnNode</span>)</span></code>
358
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
359
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#handleNode" class="summary-sig-name"><code>handleNode</code></a>(<span class=summary-sig-arg>self</span>,
360
<span class=summary-sig-arg>request</span>,
361
<span class=summary-sig-arg>node</span>)</span></code>
363
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
364
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#handleOutstanding" class="summary-sig-name"><code>handleOutstanding</code></a>(<span class=summary-sig-arg>self</span>,
365
<span class=summary-sig-arg>request</span>)</span></code>
367
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
368
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#importViewLibrary" class="summary-sig-name"><code>importViewLibrary</code></a>(<span class=summary-sig-arg>self</span>,
369
<span class=summary-sig-arg>namespace</span>)</span></code>
371
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
372
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#lookupTemplate" class="summary-sig-name"><code>lookupTemplate</code></a>(<span class=summary-sig-arg>self</span>,
373
<span class=summary-sig-arg>request</span>)</span></code>
375
Use acquisition to look up the template named by self.templateFile,
376
located anywhere above this object in the heirarchy, and use it as the
378
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
379
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#recurseChildren" class="summary-sig-name"><code>recurseChildren</code></a>(<span class=summary-sig-arg>self</span>,
380
<span class=summary-sig-arg>request</span>,
381
<span class=summary-sig-arg>node</span>)</span></code>
383
If this node has children, handle them.</td></tr>
384
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
385
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#render" class="summary-sig-name"><code>render</code></a>(<span class=summary-sig-arg>self</span>,
386
<span class=summary-sig-arg>request</span>,
387
<span class=summary-sig-arg>doneCallback</span>)</span></code>
389
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
390
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#renderFailure" class="summary-sig-name"><code>renderFailure</code></a>(<span class=summary-sig-arg>self</span>,
391
<span class=summary-sig-arg>failure</span>,
392
<span class=summary-sig-arg>request</span>)</span></code>
394
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
395
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#sendPage" class="summary-sig-name"><code>sendPage</code></a>(<span class=summary-sig-arg>self</span>,
396
<span class=summary-sig-arg>request</span>)</span></code>
398
Check to see if handlers recorded any errors before sending the
400
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
401
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#setController" class="summary-sig-name"><code>setController</code></a>(<span class=summary-sig-arg>self</span>,
402
<span class=summary-sig-arg>controller</span>)</span></code>
404
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
405
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#setSubviewFactory" class="summary-sig-name"><code>setSubviewFactory</code></a>(<span class=summary-sig-arg>self</span>,
406
<span class=summary-sig-arg>name</span>,
407
<span class=summary-sig-arg>factory</span>,
408
<span class=summary-sig-arg>setup</span>,
409
<span class="summary-sig-vararg">*args</span>,
410
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
412
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
413
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#setupAllStacks" class="summary-sig-name"><code>setupAllStacks</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
415
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
416
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#setupViewStack" class="summary-sig-name"><code>setupViewStack</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
418
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
419
<td><code><span class="summary-sig"><a href="twisted.web.woven.view.View.html#unlinkViews" class="summary-sig-name"><code>unlinkViews</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
424
<!-- =========== START OF INSTANCE VARIABLE SUMMARY =========== -->
425
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
426
<tr bgcolor="#70b0f0" class="summary">
427
<th colspan="2">Instance Variable Summary</th></tr>
428
<tr bgcolor="#e8f0f8" class="group">
429
<th colspan="2"> Inherited from Widget</th></tr>
430
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
431
<td><b><a href="twisted.web.woven.widgets.Widget.html#model"><code>model</code></a></b>: If the current model is an <a
432
href="twisted.web.woven.model.Model.html"
433
class="link"><code>model.Model</code></a>, then the result of
434
model.getData().</td></tr>
438
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
439
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
440
<tr bgcolor="#70b0f0" class="summary">
441
<th colspan="2">Class Variable Summary</th></tr>
442
<tr bgcolor="#e8f0f8" class="group">
443
<th colspan="2"> Inherited from List</th></tr>
444
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
445
<td><b><a href="twisted.web.woven.widgets.List.html#defaultItemView"><code>defaultItemView</code></a></b> = <span title="'DefaultWidget'"><code><span class="variable-quote">'</span>DefaultWidget<span class="variable-quote">'</span> </code>
447
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
448
<td><b><a href="twisted.web.woven.widgets.List.html#tagName"><code>tagName</code></a></b>: The tag name of the element that this widget creates.</td></tr>
449
<tr bgcolor="#e8f0f8" class="group">
450
<th colspan="2"> Inherited from Widget</th></tr>
451
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
452
<td><b><a href="twisted.web.woven.widgets.Widget.html#clearNode"><code>clearNode</code></a></b> = <span title="0">0 </span></td></tr>
453
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
454
<td><b><a href="twisted.web.woven.widgets.Widget.html#livePage"><code>livePage</code></a></b> = <span title="1">1 </span></td></tr>
455
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
456
<td><b><a href="twisted.web.woven.widgets.Widget.html#setupStacks"><code>setupStacks</code></a></b> = <span title="0">0 </span></td></tr>
457
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
458
<td><b><a href="twisted.web.woven.widgets.Widget.html#wantsAllNotifications"><code>wantsAllNotifications</code></a></b>: Indicate that this widget wants to recieve every change notification
459
from the main model, not just notifications that affect its model.</td></tr>
460
<tr bgcolor="#e8f0f8" class="group">
461
<th colspan="2"> Inherited from View</th></tr>
462
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
463
<td><b><a href="twisted.web.woven.view.View.html#__implements__"><code>__implements__</code></a></b> = <span title="(<class twisted.web.resource.IResource at 0x8450e44>, <class twisted.web.woven.interfaces.IView at 0x85936d4>)"><code>(<class twisted.web.resource.IResource <span class="variable-ellipsis">...</span></code>
465
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
466
<td><b><a href="twisted.web.woven.view.View.html#doneCallback"><code>doneCallback</code></a></b> = <span title="None">None </span></td></tr>
467
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
468
<td><b><a href="twisted.web.woven.view.View.html#isLeaf"><code>isLeaf</code></a></b> = <span title="1">1 </span></td></tr>
469
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
470
<td><b><a href="twisted.web.woven.view.View.html#template"><code>template</code></a></b> = <span title="''"><code><span class="variable-quote">'</span><span class="variable-quote">'</span> </code>
472
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
473
<td><b><a href="twisted.web.woven.view.View.html#templateDirectory"><code>templateDirectory</code></a></b> = <span title="''"><code><span class="variable-quote">'</span><span class="variable-quote">'</span> </code>
475
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
476
<td><b><a href="twisted.web.woven.view.View.html#templateFile"><code>templateFile</code></a></b> = <span title="''"><code><span class="variable-quote">'</span><span class="variable-quote">'</span> </code>
478
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
479
<td><b><a href="twisted.web.woven.view.View.html#templateNode"><code>templateNode</code></a></b> = <span title="None">None </span></td></tr>
480
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
481
<td><b><a href="twisted.web.woven.view.View.html#viewLibraries"><code>viewLibraries</code></a></b> = <span title="[]"><code>[] </code>
486
<!-- =========== START OF NAVBAR =========== -->
487
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
489
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
490
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
491
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
492
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
493
<th class="navbar" align="right" width="100%">
494
<table border="0" cellpadding="0" cellspacing="0">
495
<tr><th class="navbar" align="center">
497
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
498
</p></th></tr></table>
503
<table border="0" cellpadding="0" cellspacing="0" width="100%">
505
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:15 2004</font></td>
506
<td align="right"><a href="http://epydoc.sourceforge.net"
507
><font size="-2">http://epydoc.sf.net</font></a></td>