This file is indexed.

/usr/share/doc/python-kiwi/api/kiwi.controllers.BaseController.html is in python-kiwi 1.9.22-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>kiwi.controllers.BaseController : API documentation</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">k.c.BaseController : class documentation</h1>
    <p>
      <span id="part">Part of <a href="kiwi.html">kiwi</a>.<a href="kiwi.controllers.html">controllers</a></span>
      
      <a href="classIndex.html#kiwi.controllers.BaseController">View In Hierarchy</a>
    </p>
    <div>
      <p>Known subclasses: <a href="kiwi.ui.delegates.Delegate.html">kiwi.ui.delegates.Delegate</a>, <a href="kiwi.ui.delegates.GladeDelegate.html">kiwi.ui.delegates.GladeDelegate</a>, <a href="kiwi.ui.delegates.GladeSlaveDelegate.html">kiwi.ui.delegates.GladeSlaveDelegate</a>, <a href="kiwi.ui.delegates.SlaveDelegate.html">kiwi.ui.delegates.SlaveDelegate</a></p>
    </div>
    <div><p>A generic controller that can be attached to any View</p>
<p>BaseController defines one public variable:</p>
<ul>
  <li>
    view: corresponds to a the associated View instance, which holds the UI
    implementation itself (widgets, layout, etc.)
  </li>
</ul>
<table class="fieldTable"></table></div>

    
    
    <div id="splitTables">
      <table class="children sortable" id="id351">
  
  
<tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#__init__">__init__</a></td>
    <td><span>Creates a new controller, and attaches itself to a view. The</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#on_key_press">on_key_press</a></td>
    <td><span>The keypress handler, which dispatches keypresses to the</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#get_parent">get_parent</a></td>
    <td><span>parent: the correspondent parent for the controller</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#set_parent">set_parent</a></td>
    <td><span>parent: the correspondent parent for the controller</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#get_view">get_view</a></td>
    <td><span>view: the correspondent view for the controller</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#set_view">set_view</a></td>
    <td><span>view: the correspondent view for the controller</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#set_keyactions">set_keyactions</a></td>
    <td><span>Sets the keyactions mapping. See the constructor</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#update_keyactions">update_keyactions</a></td>
    <td><span>XXX</span></td>
  </tr><tr class="method private">
    
    
    <td>Method</td>
    <td><a href="kiwi.controllers.BaseController.html#_get_all_methods">_get_all_methods</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    

    <div class="function">
  <a name="kiwi.controllers.BaseController.__init__">
    
  </a>
  <a name="__init__">
    
  </a>
  <div class="functionHeader">
    
    def
    __init__(self, view=None, keyactions=None):
    
  </div>
  <div class="functionBody">
    <div class="interfaceinfo">overridden in <a href="kiwi.ui.delegates.Delegate.html">kiwi.ui.delegates.Delegate</a>, <a href="kiwi.ui.delegates.GladeDelegate.html">kiwi.ui.delegates.GladeDelegate</a>, <a href="kiwi.ui.delegates.GladeSlaveDelegate.html">kiwi.ui.delegates.GladeSlaveDelegate</a>, <a href="kiwi.ui.delegates.SlaveDelegate.html">kiwi.ui.delegates.SlaveDelegate</a></div>
    <div><p>Creates a new controller, and attaches itself to a view. The constructor
triggers a view.set_constructor(self) call, so the view is also attached to
it. The arguments are identical to the view and keyactions class 
variables.</p>
<ul>
  <li>
    view: the correspondent view for the controller
  </li>
  <li>
    keyactions: a mapping from GDK key symbol (GDK.A, etc.) to a method. 
    The method will be called when any relevant keypress is generated for 
    that view. The handler definition should look like:
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">def</span> <span class="py-defname">my_A_handler</span>(self, widget, event, args):</pre>
  </li>
</ul>
<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.on_key_press">
    
  </a>
  <a name="on_key_press">
    
  </a>
  <div class="functionHeader">
    
    def
    on_key_press(self, widget, event):
    
  </div>
  <div class="functionBody">
    
    <div>The keypress handler, which dispatches keypresses to the functions 
mapped to in self.keyactions<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.get_parent">
    
  </a>
  <a name="get_parent">
    
  </a>
  <div class="functionHeader">
    
    def
    get_parent(self):
    
  </div>
  <div class="functionBody">
    
    <div>parent: the correspondent parent for the controller<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.set_parent">
    
  </a>
  <a name="set_parent">
    
  </a>
  <div class="functionHeader">
    
    def
    set_parent(self, parent):
    
  </div>
  <div class="functionBody">
    
    <div>parent: the correspondent parent for the controller<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.get_view">
    
  </a>
  <a name="get_view">
    
  </a>
  <div class="functionHeader">
    
    def
    get_view(self):
    
  </div>
  <div class="functionBody">
    
    <div>view: the correspondent view for the controller<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.set_view">
    
  </a>
  <a name="set_view">
    
  </a>
  <div class="functionHeader">
    
    def
    set_view(self, view):
    
  </div>
  <div class="functionBody">
    
    <div>view: the correspondent view for the controller<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.set_keyactions">
    
  </a>
  <a name="set_keyactions">
    
  </a>
  <div class="functionHeader">
    
    def
    set_keyactions(self, keyactions):
    
  </div>
  <div class="functionBody">
    
    <div>Sets the keyactions mapping. See the constructor documentation for a 
description of it.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController.update_keyactions">
    
  </a>
  <a name="update_keyactions">
    
  </a>
  <div class="functionHeader">
    
    def
    update_keyactions(self, new_actions):
    
  </div>
  <div class="functionBody">
    
    <div>XXX<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="kiwi.controllers.BaseController._get_all_methods">
    
  </a>
  <a name="_get_all_methods">
    
  </a>
  <div class="functionHeader">
    
    def
    _get_all_methods(self, klass=None):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div>
    <address>
      <a href="index.html">API Documentation</a> for Kiwi, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-05-20 02:10:57.
    </address>
  </body>
</html>