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.Image</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.Image.html" target="_top">no frames</a>]</font></td></tr>
44
<!-- =========== START OF CLASS DESCRIPTION =========== -->
45
<h2 class="class">Class Image</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> --+
57
A simple Widget that creates an `img' tag.
61
<!-- =========== START OF METHOD SUMMARY =========== -->
62
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
63
<tr bgcolor="#70b0f0" class="summary">
64
<th colspan="2">Method Summary</th></tr>
65
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
66
<td><code><span class="summary-sig"><a href="twisted.web.woven.widgets.Image.html#setUp" class="summary-sig-name"><code>setUp</code></a>(<span class=summary-sig-arg>self</span>,
67
<span class=summary-sig-arg>request</span>,
68
<span class=summary-sig-arg>node</span>,
69
<span class=summary-sig-arg>data</span>)</span></code>
71
Override this method to set up your Widget prior to generateDOM.</td></tr>
72
<tr bgcolor="#e8f0f8" class="group">
73
<th colspan="2"> Inherited from Widget</th></tr>
74
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
75
<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>,
76
<span class=summary-sig-arg>model</span>,
77
<span class=summary-sig-arg>submodel</span>,
78
<span class=summary-sig-arg>setup</span>,
79
<span class=summary-sig-arg>controller</span>,
80
<span class=summary-sig-arg>viewStack</span>,
81
<span class="summary-sig-vararg">*args</span>,
82
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
84
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
85
<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>,
86
<span class=summary-sig-arg>item</span>)</span></code>
88
Convenience syntax for getting an attribute from the resultant DOM
89
Node of this widget.</td></tr>
90
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
91
<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>,
92
<span class=summary-sig-arg>item</span>,
93
<span class=summary-sig-arg>value</span>)</span></code>
95
Convenience syntax for adding attributes to the resultant DOM Node of
96
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#_regenerate" class="summary-sig-name"><code>_regenerate</code></a>(<span class=summary-sig-arg>self</span>,
99
<span class=summary-sig-arg>request</span>,
100
<span class=summary-sig-arg>node</span>,
101
<span class=summary-sig-arg>data</span>)</span></code>
103
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
104
<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>
106
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
107
<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>,
108
<span class=summary-sig-arg>item</span>)</span></code>
110
Add `item' to the children of the resultant DOM Node of this
112
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
113
<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>,
114
<span class=summary-sig-arg>eventName</span>,
115
<span class=summary-sig-arg>handler</span>,
116
<span class="summary-sig-vararg">*args</span>)</span></code>
118
Add an event handler to this widget.</td></tr>
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#addUpdateMethod" class="summary-sig-name"><code>addUpdateMethod</code></a>(<span class=summary-sig-arg>self</span>,
121
<span class=summary-sig-arg>updateMethod</span>)</span></code>
123
Add a method to this widget that will be called when the widget is
124
being rendered.</td></tr>
125
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
126
<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>,
127
<span class=summary-sig-arg>item</span>)</span></code>
129
Add `item' to the children of the resultant DOM Node of this
131
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
132
<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>,
133
<span class=summary-sig-arg>node</span>)</span></code>
135
Do your part, prevent infinite recursion!</td></tr>
136
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
137
<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>,
138
<span class=summary-sig-arg>request</span>,
139
<span class=summary-sig-arg>node</span>)</span></code>
141
Allow a view to be used like a 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#generateDOM" class="summary-sig-name"><code>generateDOM</code></a>(<span class=summary-sig-arg>self</span>,
144
<span class=summary-sig-arg>request</span>,
145
<span class=summary-sig-arg>node</span>)</span></code>
147
Return a DOM Node to replace the Node in the template that this Widget
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#getAllPatterns" class="summary-sig-name"><code>getAllPatterns</code></a>(<span class=summary-sig-arg>self</span>,
151
<span class=summary-sig-arg>name</span>,
152
<span class=summary-sig-arg>default</span>,
153
<span class=summary-sig-arg>clone</span>,
154
<span class=summary-sig-arg>deep</span>)</span></code>
156
Get all nodes below this one which have a matching pattern
158
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
159
<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>,
160
<span class=summary-sig-arg>item</span>)</span></code>
162
Convenience syntax for getting an attribute from the resultant DOM
163
Node of this widget.</td></tr>
164
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
165
<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>,
166
<span class=summary-sig-arg>request</span>)</span></code>
168
I have a model; however since I am a widget I am only responsible for
169
a portion of that model.</td></tr>
170
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
171
<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>,
172
<span class=summary-sig-arg>name</span>,
173
<span class=summary-sig-arg>default</span>,
174
<span class=summary-sig-arg>clone</span>,
175
<span class=summary-sig-arg>deep</span>)</span></code>
177
Get a named slot from the incoming template node.</td></tr>
178
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
179
<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>
181
Get a reference to this page's top model object.</td></tr>
182
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
183
<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>,
184
<span class="summary-sig-vararg">*args</span>,
185
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
187
Use this method instead of __init__ to initialize your Widget, so you
188
don't have to deal with calling the __init__ of the superclass.</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#insert" class="summary-sig-name"><code>insert</code></a>(<span class=summary-sig-arg>self</span>,
191
<span class=summary-sig-arg>index</span>,
192
<span class=summary-sig-arg>item</span>)</span></code>
194
Insert `item' at `index' in the children list of the resultant DOM
195
Node of this widget.</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#modelChanged" class="summary-sig-name"><code>modelChanged</code></a>(<span class=summary-sig-arg>self</span>,
198
<span class=summary-sig-arg>payload</span>)</span></code>
200
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
201
<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>,
202
<span class=summary-sig-arg>request</span>,
203
<span class=summary-sig-arg>eventName</span>,
204
<span class="summary-sig-vararg">*args</span>)</span></code>
206
Dispatch a client-side event to an event handler that was registered
207
using addEventHandler.</td></tr>
208
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
209
<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>,
210
<span class=summary-sig-arg>item</span>,
211
<span class=summary-sig-arg>value</span>)</span></code>
213
Convenience syntax for adding attributes to the resultant DOM Node of
214
this widget.</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#setData" class="summary-sig-name"><code>setData</code></a>(<span class=summary-sig-arg>self</span>,
217
<span class=summary-sig-arg>request</span>,
218
<span class=summary-sig-arg>data</span>)</span></code>
220
If the return value of <a
221
href="twisted.web.woven.widgets.Widget.html#getData"
222
class="link"><code>getData</code></a> is a Deferred, I am called when the
223
result of the Deferred is available.</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#setDataCallback" class="summary-sig-name"><code>setDataCallback</code></a>(<span class=summary-sig-arg>self</span>,
226
<span class=summary-sig-arg>result</span>,
227
<span class=summary-sig-arg>request</span>,
228
<span class=summary-sig-arg>node</span>)</span></code>
230
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
231
<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>,
232
<span class=summary-sig-arg>request</span>,
233
<span class=summary-sig-arg>message</span>)</span></code>
235
Convenience method for allowing a Controller to report an error to the
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#setNode" class="summary-sig-name"><code>setNode</code></a>(<span class=summary-sig-arg>self</span>,
239
<span class=summary-sig-arg>node</span>)</span></code>
241
Set a node for this widget to use instead of creating one
242
programatically.</td></tr>
243
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
244
<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>,
245
<span class=summary-sig-arg>submodel</span>)</span></code>
247
I use the submodel to know which attribute in self.model I am
248
responsible for</td></tr>
249
<tr bgcolor="#e8f0f8" class="group">
250
<th colspan="2"> Inherited from View</th></tr>
251
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
252
<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>,
253
<span class=summary-sig-arg>request</span>,
254
<span class=summary-sig-arg>node</span>,
255
<span class=summary-sig-arg>result</span>)</span></code>
257
Check a given result from handling a node and look up a NodeMutator
258
adapter which will convert the result into a node and insert it into the
260
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
261
<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>,
262
<span class=summary-sig-arg>result</span>,
263
<span class=summary-sig-arg>request</span>,
264
<span class=summary-sig-arg>node</span>)</span></code>
266
Deal with a callback from a deferred, checking to see if it is ok to
267
send the page yet or not.</td></tr>
268
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
269
<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>,
270
<span class=summary-sig-arg>path</span>,
271
<span class=summary-sig-arg>request</span>)</span></code>
273
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
274
<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>,
275
<span class=summary-sig-arg>path</span>,
276
<span class=summary-sig-arg>request</span>)</span></code>
278
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
279
<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>,
280
<span class=summary-sig-arg>request</span>,
281
<span class=summary-sig-arg>node</span>,
282
<span class=summary-sig-arg>submodel</span>,
283
<span class=summary-sig-arg>model</span>)</span></code>
285
Get a controller object to handle this node.</td></tr>
286
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
287
<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>,
288
<span class=summary-sig-arg>request</span>,
289
<span class=summary-sig-arg>node</span>,
290
<span class=summary-sig-arg>submodel</span>)</span></code>
292
Get the model object associated with this node.</td></tr>
293
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
294
<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>,
295
<span class=summary-sig-arg>request</span>,
296
<span class=summary-sig-arg>node</span>,
297
<span class=summary-sig-arg>submodel</span>,
298
<span class=summary-sig-arg>model</span>)</span></code>
300
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
301
<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>,
302
<span class=summary-sig-arg>request</span>,
303
<span class=summary-sig-arg>node</span>,
304
<span class=summary-sig-arg>model</span>,
305
<span class=summary-sig-arg>viewName</span>)</span></code>
307
Get a sub-view from me.</td></tr>
308
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
309
<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>,
310
<span class=summary-sig-arg>request</span>)</span></code>
312
Override this if you want to have your subclass look up its template
313
using a different method.</td></tr>
314
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
315
<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>,
316
<span class=summary-sig-arg>controllerResult</span>,
317
<span class=summary-sig-arg>request</span>,
318
<span class=summary-sig-arg>node</span>,
319
<span class=summary-sig-arg>controller</span>,
320
<span class=summary-sig-arg>view</span>)</span></code>
322
Handle a deferred from a controller.</td></tr>
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#handleDocument" class="summary-sig-name"><code>handleDocument</code></a>(<span class=summary-sig-arg>self</span>,
325
<span class=summary-sig-arg>request</span>,
326
<span class=summary-sig-arg>document</span>)</span></code>
328
Handle the root node, and send the page if there are no outstanding
329
callbacks when it returns.</td></tr>
330
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
331
<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>,
332
<span class=summary-sig-arg>request</span>,
333
<span class=summary-sig-arg>returnNode</span>)</span></code>
335
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
336
<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>,
337
<span class=summary-sig-arg>request</span>,
338
<span class=summary-sig-arg>node</span>)</span></code>
340
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
341
<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>,
342
<span class=summary-sig-arg>request</span>)</span></code>
344
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
345
<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>,
346
<span class=summary-sig-arg>namespace</span>)</span></code>
348
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
349
<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>,
350
<span class=summary-sig-arg>request</span>)</span></code>
352
Use acquisition to look up the template named by self.templateFile,
353
located anywhere above this object in the heirarchy, and use it as the
355
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
356
<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>,
357
<span class=summary-sig-arg>request</span>,
358
<span class=summary-sig-arg>node</span>)</span></code>
360
If this node has children, handle them.</td></tr>
361
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
362
<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>,
363
<span class=summary-sig-arg>request</span>,
364
<span class=summary-sig-arg>doneCallback</span>)</span></code>
366
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
367
<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>,
368
<span class=summary-sig-arg>failure</span>,
369
<span class=summary-sig-arg>request</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#sendPage" class="summary-sig-name"><code>sendPage</code></a>(<span class=summary-sig-arg>self</span>,
373
<span class=summary-sig-arg>request</span>)</span></code>
375
Check to see if handlers recorded any errors before sending the
377
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
378
<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>,
379
<span class=summary-sig-arg>controller</span>)</span></code>
381
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
382
<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>,
383
<span class=summary-sig-arg>name</span>,
384
<span class=summary-sig-arg>factory</span>,
385
<span class=summary-sig-arg>setup</span>,
386
<span class="summary-sig-vararg">*args</span>,
387
<span class="summary-sig-kwarg">**kwargs</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#setupAllStacks" class="summary-sig-name"><code>setupAllStacks</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
392
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
393
<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>
395
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
396
<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>
401
<!-- =========== START OF INSTANCE VARIABLE SUMMARY =========== -->
402
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
403
<tr bgcolor="#70b0f0" class="summary">
404
<th colspan="2">Instance Variable Summary</th></tr>
405
<tr bgcolor="#e8f0f8" class="group">
406
<th colspan="2"> Inherited from Widget</th></tr>
407
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
408
<td><b><a href="twisted.web.woven.widgets.Widget.html#model"><code>model</code></a></b>: If the current model is an <a
409
href="twisted.web.woven.model.Model.html"
410
class="link"><code>model.Model</code></a>, then the result of
411
model.getData().</td></tr>
415
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
416
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
417
<tr bgcolor="#70b0f0" class="summary">
418
<th colspan="2">Class Variable Summary</th></tr>
419
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
420
<td><b><a href="twisted.web.woven.widgets.Image.html#border"><code>border</code></a></b> = <span title="'0'"><code><span class="variable-quote">'</span>0<span class="variable-quote">'</span> </code>
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.Image.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.Widget.html#setUp"><code>twisted.web.woven.widgets.Widget.setUp</code></a> <i>(inherited documentation)</i>
507
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
508
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
509
<tr bgcolor="#70b0f0" class="details">
510
<th colspan="2">Class Variable Details</th></tr>
512
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
513
<a name="border"></a>
519
<dt><b>Type:</b></dt>
524
<span title="'0'"> <dt><b>Value:</b></dt>
526
<pre class="variable">
527
<span class="variable-quote">'</span>0<span class="variable-quote">'</span> </pre>
528
</td></tr></table></dd>
531
</dl></td></tr></table>
532
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
533
<a name="tagName"></a>
535
The tag name of the element that this widget creates. If this is None,
536
then the original Node will be cloned.
541
<dt><b>Type:</b></dt>
543
<code>NoneType</code>
546
<span title="'img'"> <dt><b>Value:</b></dt>
548
<pre class="variable">
549
<span class="variable-quote">'</span>img<span class="variable-quote">'</span> </pre>
550
</td></tr></table></dd>
553
</dl></td></tr></table>
557
<!-- =========== START OF NAVBAR =========== -->
558
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
560
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
561
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
562
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
563
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
564
<th class="navbar" align="right" width="100%">
565
<table border="0" cellpadding="0" cellspacing="0">
566
<tr><th class="navbar" align="center">
568
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
569
</p></th></tr></table>
574
<table border="0" cellpadding="0" cellspacing="0" width="100%">
576
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:35 2004</font></td>
577
<td align="right"><a href="http://epydoc.sourceforge.net"
578
><font size="-2">http://epydoc.sf.net</font></a></td>