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.File</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.File.html" target="_top">no frames</a>]</font></td></tr>
44
<!-- =========== START OF CLASS DESCRIPTION =========== -->
45
<h2 class="class">Class File</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.Input.html"><code>Input</code></a> --+
60
<!-- =========== START OF METHOD SUMMARY =========== -->
61
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
62
<tr bgcolor="#70b0f0" class="summary">
63
<th colspan="2">Method Summary</th></tr>
64
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
65
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.File.html#setUp" class="summary-sig-name"><code>setUp</code></a>(<span class=summary-sig-arg>self</span>,
66
<span class=summary-sig-arg>request</span>,
67
<span class=summary-sig-arg>node</span>,
68
<span class=summary-sig-arg>data</span>)</span></code>
70
Override this method to set up your Widget prior to generateDOM.</td></tr>
71
<tr bgcolor="#e8f0f8" class="group">
72
<th colspan="2"> Inherited from Input</th></tr>
73
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
74
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Input.html#setSubmodel" class="summary-sig-name"><code>setSubmodel</code></a>(<span class=summary-sig-arg>self</span>,
75
<span class=summary-sig-arg>submodel</span>)</span></code>
77
I use the submodel to know which attribute in self.model I am
78
responsible for</td></tr>
79
<tr bgcolor="#e8f0f8" class="group">
80
<th colspan="2"> Inherited from Widget</th></tr>
81
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
82
<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>,
83
<span class=summary-sig-arg>model</span>,
84
<span class=summary-sig-arg>submodel</span>,
85
<span class=summary-sig-arg>setup</span>,
86
<span class=summary-sig-arg>controller</span>,
87
<span class=summary-sig-arg>viewStack</span>,
88
<span class="summary-sig-vararg">*args</span>,
89
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
91
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
92
<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>,
93
<span class=summary-sig-arg>item</span>)</span></code>
95
Convenience syntax for getting an attribute from the resultant DOM
96
Node of this widget.</td></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#__setitem__" class="summary-sig-name"><code>__setitem__</code></a>(<span class=summary-sig-arg>self</span>,
99
<span class=summary-sig-arg>item</span>,
100
<span class=summary-sig-arg>value</span>)</span></code>
102
Convenience syntax for adding attributes to the resultant DOM Node of
103
this widget.</td></tr>
104
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
105
<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>,
106
<span class=summary-sig-arg>request</span>,
107
<span class=summary-sig-arg>node</span>,
108
<span class=summary-sig-arg>data</span>)</span></code>
110
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
111
<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>
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#add" class="summary-sig-name"><code>add</code></a>(<span class=summary-sig-arg>self</span>,
115
<span class=summary-sig-arg>item</span>)</span></code>
117
Add `item' to the children of the resultant DOM Node of this
119
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
120
<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>,
121
<span class=summary-sig-arg>eventName</span>,
122
<span class=summary-sig-arg>handler</span>,
123
<span class="summary-sig-vararg">*args</span>)</span></code>
125
Add an event handler to this widget.</td></tr>
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#addUpdateMethod" class="summary-sig-name"><code>addUpdateMethod</code></a>(<span class=summary-sig-arg>self</span>,
128
<span class=summary-sig-arg>updateMethod</span>)</span></code>
130
Add a method to this widget that will be called when the widget is
131
being rendered.</td></tr>
132
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
133
<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>,
134
<span class=summary-sig-arg>item</span>)</span></code>
136
Add `item' to the children of the resultant DOM Node of this
138
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
139
<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>,
140
<span class=summary-sig-arg>node</span>)</span></code>
142
Do your part, prevent infinite recursion!</td></tr>
143
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
144
<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>,
145
<span class=summary-sig-arg>request</span>,
146
<span class=summary-sig-arg>node</span>)</span></code>
148
Allow a view to be used like a widget.</td></tr>
149
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
150
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Widget.html#generateDOM" class="summary-sig-name"><code>generateDOM</code></a>(<span class=summary-sig-arg>self</span>,
151
<span class=summary-sig-arg>request</span>,
152
<span class=summary-sig-arg>node</span>)</span></code>
154
Return a DOM Node to replace the Node in the template that this Widget
156
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
157
<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>,
158
<span class=summary-sig-arg>name</span>,
159
<span class=summary-sig-arg>default</span>,
160
<span class=summary-sig-arg>clone</span>,
161
<span class=summary-sig-arg>deep</span>)</span></code>
163
Get all nodes below this one which have a matching pattern
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#__getitem__" class="summary-sig-name"><code>getAttribute</code></a>(<span class=summary-sig-arg>self</span>,
167
<span class=summary-sig-arg>item</span>)</span></code>
169
Convenience syntax for getting an attribute from the resultant DOM
170
Node of this widget.</td></tr>
171
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
172
<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>,
173
<span class=summary-sig-arg>request</span>)</span></code>
175
I have a model; however since I am a widget I am only responsible for
176
a portion of that model.</td></tr>
177
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
178
<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>,
179
<span class=summary-sig-arg>name</span>,
180
<span class=summary-sig-arg>default</span>,
181
<span class=summary-sig-arg>clone</span>,
182
<span class=summary-sig-arg>deep</span>)</span></code>
184
Get a named slot from the incoming template node.</td></tr>
185
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
186
<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>
188
Get a reference to this page's top model object.</td></tr>
189
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
190
<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>,
191
<span class="summary-sig-vararg">*args</span>,
192
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
194
Use this method instead of __init__ to initialize your Widget, so you
195
don't have to deal with calling the __init__ of the superclass.</td></tr>
196
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
197
<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>,
198
<span class=summary-sig-arg>index</span>,
199
<span class=summary-sig-arg>item</span>)</span></code>
201
Insert `item' at `index' in the children list of the resultant DOM
202
Node of this widget.</td></tr>
203
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
204
<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>,
205
<span class=summary-sig-arg>payload</span>)</span></code>
207
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
208
<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>,
209
<span class=summary-sig-arg>request</span>,
210
<span class=summary-sig-arg>eventName</span>,
211
<span class="summary-sig-vararg">*args</span>)</span></code>
213
Dispatch a client-side event to an event handler that was registered
214
using addEventHandler.</td></tr>
215
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
216
<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>,
217
<span class=summary-sig-arg>item</span>,
218
<span class=summary-sig-arg>value</span>)</span></code>
220
Convenience syntax for adding attributes to the resultant DOM Node of
221
this widget.</td></tr>
222
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
223
<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>,
224
<span class=summary-sig-arg>request</span>,
225
<span class=summary-sig-arg>data</span>)</span></code>
227
If the return value of <a
228
href="twisted.web.woven.widgets.Widget.html#getData"
229
class="link"><code>getData</code></a> is a Deferred, I am called when the
230
result of the Deferred is available.</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#setDataCallback" class="summary-sig-name"><code>setDataCallback</code></a>(<span class=summary-sig-arg>self</span>,
233
<span class=summary-sig-arg>result</span>,
234
<span class=summary-sig-arg>request</span>,
235
<span class=summary-sig-arg>node</span>)</span></code>
237
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
238
<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>,
239
<span class=summary-sig-arg>request</span>,
240
<span class=summary-sig-arg>message</span>)</span></code>
242
Convenience method for allowing a Controller to report an error to the
244
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
245
<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>,
246
<span class=summary-sig-arg>node</span>)</span></code>
248
Set a node for this widget to use instead of creating one
249
programatically.</td></tr>
250
<tr bgcolor="#e8f0f8" class="group">
251
<th colspan="2"> Inherited from View</th></tr>
252
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
253
<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>,
254
<span class=summary-sig-arg>request</span>,
255
<span class=summary-sig-arg>node</span>,
256
<span class=summary-sig-arg>result</span>)</span></code>
258
Check a given result from handling a node and look up a NodeMutator
259
adapter which will convert the result into a node and insert it into the
261
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
262
<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>,
263
<span class=summary-sig-arg>result</span>,
264
<span class=summary-sig-arg>request</span>,
265
<span class=summary-sig-arg>node</span>)</span></code>
267
Deal with a callback from a deferred, checking to see if it is ok to
268
send the page yet or not.</td></tr>
269
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
270
<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>,
271
<span class=summary-sig-arg>path</span>,
272
<span class=summary-sig-arg>request</span>)</span></code>
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#getChildWithDefault" class="summary-sig-name"><code>getChildWithDefault</code></a>(<span class=summary-sig-arg>self</span>,
276
<span class=summary-sig-arg>path</span>,
277
<span class=summary-sig-arg>request</span>)</span></code>
279
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
280
<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>,
281
<span class=summary-sig-arg>request</span>,
282
<span class=summary-sig-arg>node</span>,
283
<span class=summary-sig-arg>submodel</span>,
284
<span class=summary-sig-arg>model</span>)</span></code>
286
Get a controller object to handle this node.</td></tr>
287
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
288
<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>,
289
<span class=summary-sig-arg>request</span>,
290
<span class=summary-sig-arg>node</span>,
291
<span class=summary-sig-arg>submodel</span>)</span></code>
293
Get the model object associated with this node.</td></tr>
294
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
295
<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>,
296
<span class=summary-sig-arg>request</span>,
297
<span class=summary-sig-arg>node</span>,
298
<span class=summary-sig-arg>submodel</span>,
299
<span class=summary-sig-arg>model</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#getSubview" class="summary-sig-name"><code>getSubview</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>model</span>,
306
<span class=summary-sig-arg>viewName</span>)</span></code>
308
Get a sub-view from me.</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#getTemplate" class="summary-sig-name"><code>getTemplate</code></a>(<span class=summary-sig-arg>self</span>,
311
<span class=summary-sig-arg>request</span>)</span></code>
313
Override this if you want to have your subclass look up its template
314
using a different method.</td></tr>
315
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
316
<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>,
317
<span class=summary-sig-arg>controllerResult</span>,
318
<span class=summary-sig-arg>request</span>,
319
<span class=summary-sig-arg>node</span>,
320
<span class=summary-sig-arg>controller</span>,
321
<span class=summary-sig-arg>view</span>)</span></code>
323
Handle a deferred from a controller.</td></tr>
324
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
325
<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>,
326
<span class=summary-sig-arg>request</span>,
327
<span class=summary-sig-arg>document</span>)</span></code>
329
Handle the root node, and send the page if there are no outstanding
330
callbacks when it returns.</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#handleNewNode" class="summary-sig-name"><code>handleNewNode</code></a>(<span class=summary-sig-arg>self</span>,
333
<span class=summary-sig-arg>request</span>,
334
<span class=summary-sig-arg>returnNode</span>)</span></code>
336
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
337
<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>,
338
<span class=summary-sig-arg>request</span>,
339
<span class=summary-sig-arg>node</span>)</span></code>
341
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
342
<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>,
343
<span class=summary-sig-arg>request</span>)</span></code>
345
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
346
<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>,
347
<span class=summary-sig-arg>namespace</span>)</span></code>
349
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
350
<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>,
351
<span class=summary-sig-arg>request</span>)</span></code>
353
Use acquisition to look up the template named by self.templateFile,
354
located anywhere above this object in the heirarchy, and use it as the
356
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
357
<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>,
358
<span class=summary-sig-arg>request</span>,
359
<span class=summary-sig-arg>node</span>)</span></code>
361
If this node has children, handle them.</td></tr>
362
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
363
<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>,
364
<span class=summary-sig-arg>request</span>,
365
<span class=summary-sig-arg>doneCallback</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#renderFailure" class="summary-sig-name"><code>renderFailure</code></a>(<span class=summary-sig-arg>self</span>,
369
<span class=summary-sig-arg>failure</span>,
370
<span class=summary-sig-arg>request</span>)</span></code>
372
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
373
<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>,
374
<span class=summary-sig-arg>request</span>)</span></code>
376
Check to see if handlers recorded any errors before sending 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#setController" class="summary-sig-name"><code>setController</code></a>(<span class=summary-sig-arg>self</span>,
380
<span class=summary-sig-arg>controller</span>)</span></code>
382
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
383
<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>,
384
<span class=summary-sig-arg>name</span>,
385
<span class=summary-sig-arg>factory</span>,
386
<span class=summary-sig-arg>setup</span>,
387
<span class="summary-sig-vararg">*args</span>,
388
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
390
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
391
<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>
393
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
394
<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>
396
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
397
<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>
402
<!-- =========== START OF INSTANCE VARIABLE SUMMARY =========== -->
403
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
404
<tr bgcolor="#70b0f0" class="summary">
405
<th colspan="2">Instance Variable Summary</th></tr>
406
<tr bgcolor="#e8f0f8" class="group">
407
<th colspan="2"> Inherited from Widget</th></tr>
408
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
409
<td><b><a href="twisted.web.woven.widgets.Widget.html#model"><code>model</code></a></b>: If the current model is an <a
410
href="twisted.web.woven.model.Model.html"
411
class="link"><code>model.Model</code></a>, then the result of
412
model.getData().</td></tr>
416
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
417
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
418
<tr bgcolor="#70b0f0" class="summary">
419
<th colspan="2">Class Variable Summary</th></tr>
420
<tr bgcolor="#e8f0f8" class="group">
421
<th colspan="2"> Inherited from Input</th></tr>
422
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
423
<td><b><a href="twisted.web.woven.widgets.Input.html#tagName"><code>tagName</code></a></b>: The tag name of the element that this widget creates.</td></tr>
424
<tr bgcolor="#e8f0f8" class="group">
425
<th colspan="2"> Inherited from Widget</th></tr>
426
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
427
<td><b><a href="twisted.web.woven.widgets.Widget.html#clearNode"><code>clearNode</code></a></b> = <span title="0">0 </span></td></tr>
428
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
429
<td><b><a href="twisted.web.woven.widgets.Widget.html#livePage"><code>livePage</code></a></b> = <span title="1">1 </span></td></tr>
430
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
431
<td><b><a href="twisted.web.woven.widgets.Widget.html#setupStacks"><code>setupStacks</code></a></b> = <span title="0">0 </span></td></tr>
432
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
433
<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
434
from the main model, not just notifications that affect its model.</td></tr>
435
<tr bgcolor="#e8f0f8" class="group">
436
<th colspan="2"> Inherited from View</th></tr>
437
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
438
<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>
440
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
441
<td><b><a href="twisted.web.woven.view.View.html#doneCallback"><code>doneCallback</code></a></b> = <span title="None">None </span></td></tr>
442
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
443
<td><b><a href="twisted.web.woven.view.View.html#isLeaf"><code>isLeaf</code></a></b> = <span title="1">1 </span></td></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.view.View.html#template"><code>template</code></a></b> = <span title="''"><code><span class="variable-quote">'</span><span class="variable-quote">'</span> </code>
447
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
448
<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>
450
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
451
<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>
453
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
454
<td><b><a href="twisted.web.woven.view.View.html#templateNode"><code>templateNode</code></a></b> = <span title="None">None </span></td></tr>
455
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
456
<td><b><a href="twisted.web.woven.view.View.html#viewLibraries"><code>viewLibraries</code></a></b> = <span title="[]"><code>[] </code>
461
<!-- =========== START OF METHOD DETAILS =========== -->
462
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
463
<tr bgcolor="#70b0f0" class="details">
464
<th colspan="2">Method Details</th></tr>
468
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
469
<h3><span class="sig"><span class="sig-name">setUp</span>(<span class=sig-arg>self</span>,
470
<span class=sig-arg>request</span>,
471
<span class=sig-arg>node</span>,
472
<span class=sig-arg>data</span>)</span>
474
<p>Override this method to set up your Widget prior to generateDOM.
475
This is a good place to call methods like <a
476
href="twisted.web.woven.widgets.Widget.html#add"
477
class="link"><code>add</code></a>, <a
478
href="twisted.web.woven.widgets.Widget.html#insert"
479
class="link"><code>insert</code></a>, <a
480
href="twisted.web.woven.widgets.Widget.html#__setitem__"
481
class="link"><code>__setitem__</code></a> and <a
482
href="twisted.web.woven.widgets.Widget.html#__getitem__"
483
class="link"><code>__getitem__</code></a>.</p>
484
Overriding this method obsoletes overriding generateDOM directly, in
487
<dl><dt><b>Parameters:</b></dt>
488
<dd><code><b>request</b></code>
489
<br /><i>
490
(type=<a href="twisted.web.server.Request.html"
491
class="link"><code>twisted.web.server.Request</code></a>.)</i>
492
<dd><code><b>node</b></code> -
493
The DOM node which this Widget is operating on.
494
<dd><code><b>data</b></code> -
495
The Model data this Widget is meant to operate upon.
498
<dl><dt><b>Overrides:</b></dt>
499
<dd><a href="twisted.web.woven.widgets.Input.html#setUp"><code>twisted.web.woven.widgets.Input.setUp</code></a> <i>(inherited documentation)</i>
507
<!-- =========== START OF NAVBAR =========== -->
508
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
510
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
511
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
512
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
513
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
514
<th class="navbar" align="right" width="100%">
515
<table border="0" cellpadding="0" cellspacing="0">
516
<tr><th class="navbar" align="center">
518
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
519
</p></th></tr></table>
524
<table border="0" cellpadding="0" cellspacing="0" width="100%">
526
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:46 2004</font></td>
527
<td align="right"><a href="http://epydoc.sourceforge.net"
528
><font size="-2">http://epydoc.sf.net</font></a></td>