~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to doc/api/twisted.web.woven.widgets.KeyedList.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-06-21 22:01:11 UTC
  • mto: (2.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040621220111-vkf909euqnyrp3nr
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
5
<head>
 
6
  <title>twisted.web.woven.widgets.KeyedList</title>
 
7
  <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
 
8
</head>
 
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
 
10
      alink="#204080">
 
11
 
 
12
<!-- =========== START OF NAVBAR =========== -->
 
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
 
14
  <tr valign="center">
 
15
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="twisted.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
16
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
17
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
 
18
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
19
    <th class="navbar" align="right" width="100%">
 
20
      <table border="0" cellpadding="0" cellspacing="0">
 
21
      <tr><th class="navbar" align="center">
 
22
        <p class="nomargin">
 
23
          <a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted&nbsp;1.3.0rc1</a>
 
24
      </p></th></tr></table>
 
25
    </th>
 
26
  </tr>
 
27
</table>
 
28
<table width="100%" cellpadding="0" cellspacing="0">
 
29
  <tr valign="top">
 
30
    <td width="100%">
 
31
      <font size="-1"><b class="breadcrumbs">
 
32
        <a href="twisted.html">Package&nbsp;twisted</a> ::
 
33
        <a href="twisted.web.html">Package&nbsp;web</a> ::
 
34
        <a href="twisted.web.woven.html">Package&nbsp;woven</a> ::
 
35
        <a href="twisted.web.woven.widgets.html">Module&nbsp;widgets</a> ::
 
36
        Class&nbsp;KeyedList
 
37
      </b></font></br>
 
38
    </td>
 
39
    <td><table cellpadding="0" cellspacing="0">
 
40
      <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="twisted.web.woven.widgets.KeyedList.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
 
41
    </table></td>
 
42
</tr></table>
 
43
 
 
44
<!-- =========== START OF CLASS DESCRIPTION =========== -->
 
45
<h2 class="class">Class KeyedList</h2>
 
46
 
 
47
<pre class="base-tree">
 
48
<a href="twisted.web.woven.view.View.html"><code>View</code></a> --+        
 
49
       |        
 
50
  <a href="twisted.web.woven.widgets.Widget.html"><code>Widget</code></a> --+    
 
51
           |    
 
52
        <a href="twisted.web.woven.widgets.List.html"><code>List</code></a> --+
 
53
               |
 
54
              <b>KeyedList</b>
 
55
</pre><br />
 
56
 
 
57
<hr/>
 
58
 
 
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
  | &lt;ul model=&quot;blah&quot; view=&quot;KeyedList&quot;&gt;
 
64
  |     &lt;li pattern=&quot;emptyList&quot;&gt;This will be displayed if the list is
 
65
  |         empty.&lt;/li&gt;
 
66
  |     &lt;li pattern=&quot;keyedListItem&quot; view=&quot;Text&quot;&gt;Foo&lt;/li&gt;
 
67
  | &lt;/ul&gt;
 
68
</pre>
 
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.
 
73
<hr/>
 
74
 
 
75
 
 
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">&nbsp;</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>
 
85
</td></tr>
 
86
<tr bgcolor="#e8f0f8" class="group">
 
87
  <th colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;Inherited from List</th></tr>
 
88
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
92
<br />
 
93
Return a DOM Node to replace the Node in the template that this Widget 
 
94
handles.</td></tr>
 
95
<tr bgcolor="#e8f0f8" class="group">
 
96
  <th colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;Inherited from Widget</th></tr>
 
97
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
106
</td></tr>
 
107
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
110
<br />
 
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">&nbsp;</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>
 
117
<br />
 
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">&nbsp;</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>
 
125
</td></tr>
 
126
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
128
</td></tr>
 
129
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
132
<br />
 
133
Add `item' to the children of the resultant DOM Node of this 
 
134
widget.</td></tr>
 
135
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
140
<br />
 
141
Add an event handler to this widget.</td></tr>
 
142
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
145
<br />
 
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">&nbsp;</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>
 
151
<br />
 
152
Add `item' to the children of the resultant DOM Node of this 
 
153
widget.</td></tr>
 
154
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
157
<br />
 
158
Do your part, prevent infinite recursion!</td></tr>
 
159
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
163
<br />
 
164
Allow a view to be used like a widget.</td></tr>
 
165
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
171
<br />
 
172
Get all nodes below this one which have a matching pattern 
 
173
attribute.</td></tr>
 
174
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
177
<br />
 
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">&nbsp;</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>
 
183
<br />
 
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">&nbsp;</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>
 
192
<br />
 
193
Get a named slot from the incoming template node.</td></tr>
 
194
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
196
<br />
 
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">&nbsp;</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>
 
202
<br />
 
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">&nbsp;</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>
 
209
<br />
 
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">&nbsp;</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>
 
215
</td></tr>
 
216
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
221
<br />
 
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">&nbsp;</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>
 
228
<br />
 
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">&nbsp;</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>
 
235
<br />
 
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">&nbsp;</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>
 
245
</td></tr>
 
246
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
250
<br />
 
251
Convenience method for allowing a Controller to report an error to the 
 
252
user.</td></tr>
 
253
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
256
<br />
 
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">&nbsp;</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>
 
262
<br />
 
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">&nbsp;</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>
 
270
<br />
 
271
Override this method to set up your Widget prior to generateDOM.</td></tr>
 
272
<tr bgcolor="#e8f0f8" class="group">
 
273
  <th colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;Inherited from View</th></tr>
 
274
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
279
<br />
 
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 
 
282
DOM tree.</td></tr>
 
283
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
288
<br />
 
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">&nbsp;</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>
 
295
</td></tr>
 
296
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
300
</td></tr>
 
301
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
307
<br />
 
308
Get a controller object to handle this node.</td></tr>
 
309
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
314
<br />
 
315
Get the model object associated with this node.</td></tr>
 
316
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
322
</td></tr>
 
323
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
329
<br />
 
330
Get a sub-view from me.</td></tr>
 
331
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
334
<br />
 
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">&nbsp;</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>
 
344
<br />
 
345
Handle a deferred from a controller.</td></tr>
 
346
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
350
<br />
 
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">&nbsp;</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>
 
357
</td></tr>
 
358
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
362
</td></tr>
 
363
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
366
</td></tr>
 
367
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
370
</td></tr>
 
371
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
374
<br />
 
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 
 
377
template.</td></tr>
 
378
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
382
<br />
 
383
If this node has children, handle them.</td></tr>
 
384
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
388
</td></tr>
 
389
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
393
</td></tr>
 
394
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
397
<br />
 
398
Check to see if handlers recorded any errors before sending the 
 
399
page</td></tr>
 
400
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
403
</td></tr>
 
404
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
411
</td></tr>
 
412
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
414
</td></tr>
 
415
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
417
</td></tr>
 
418
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
420
</td></tr>
 
421
</table><br />
 
422
 
 
423
 
 
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">&nbsp;&nbsp;&nbsp;&nbsp;Inherited from Widget</th></tr>
 
430
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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>
 
435
</table><br />
 
436
 
 
437
 
 
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">&nbsp;&nbsp;&nbsp;&nbsp;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>
 
446
</span></td></tr>
 
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">&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>
 
457
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;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="(&lt;class twisted.web.resource.IResource at 0x8450e44&gt;, &lt;class twisted.web.woven.interfaces.IView at 0x85936d4&gt;)"><code>(&lt;class&nbsp;twisted.web.resource.IResource&nbsp;<span class="variable-ellipsis">...</span></code>
 
464
</span></td></tr>
 
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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
 
471
</span></td></tr>
 
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>
 
474
</span></td></tr>
 
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>
 
477
</span></td></tr>
 
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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
 
482
</span></td></tr>
 
483
</table><br />
 
484
 
 
485
 
 
486
<!-- =========== START OF NAVBAR =========== -->
 
487
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
 
488
  <tr valign="center">
 
489
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="twisted.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
490
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
491
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
 
492
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
493
    <th class="navbar" align="right" width="100%">
 
494
      <table border="0" cellpadding="0" cellspacing="0">
 
495
      <tr><th class="navbar" align="center">
 
496
        <p class="nomargin">
 
497
          <a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted&nbsp;1.3.0rc1</a>
 
498
      </p></th></tr></table>
 
499
    </th>
 
500
  </tr>
 
501
</table>
 
502
 
 
503
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
504
  <tr>
 
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>
 
508
  </tr>
 
509
</table>
 
510
</body>
 
511
</html>