bugs.python.org / html / page.html

  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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<tal:block metal:define-macro="icing">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title metal:define-slot="head_title">title goes here</title>
<link rel="shortcut icon" href="@@file/favicon.ico" />
<link rel="stylesheet" type="text/css" href="@@file/main.css" />
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
<link rel="search" type="application/opensearchdescription+xml"
      href="@@file/osd.xml"
      title="Python bug tracker search" />
<meta http-equiv="Content-Type"
 tal:attributes="content string:text/html;; charset=${request/client/charset}" />
<script tal:replace="structure request/base_javascript">
</script>
<metal:x define-slot="more-javascript" />

</head>
<body
tal:define="
kw_create python:request.user.hasPermission('Create', 'keyword');
columns string:id,activity,title,creator,status;
columns_showall string:id,activity,title,creator,assignee,status,type;
status_notresolved string:-1,1,3;
status_all string:-1,1,2,3;
">
  <!--  Logo  -->
  <h1 id="logoheader">
    <a accesskey="1" href="." id="logolink">
       <img src="@@file/python-logo.gif"
            alt="homepage" border="0" id="logo" /></a>
  </h1>

<div id="utility-menu">
<!-- Search Box -->
<div id="searchbox">
    <form name="searchform" method="get" action="issue" id="searchform">
      <div id="search">
       <input type="hidden" name="@columns"
              tal:attributes="value columns_showall"/>
       <input type="hidden" name="@sort" value="-activity" />
       <input type="hidden" name="@filter" value="status"/>
       <input type="hidden" name="@action" value="searchid"/>
       <input type="hidden" name="ignore" value="file:content"/>
       <input tal:attributes="value python:request.form.getvalue('@search_text') or nothing;"
              class="input-text" id="search-text" name="@search_text" size="10" />
       <input type="submit" id="submit" value="search" name="submit"
              class="input-button"/>
       <input type="radio" name="status" tal:attributes="value status_notresolved;
              id string:status_notresolved"/>
       <label for="status_notresolved">open</label>
       <input type="radio" name="status" tal:attributes="value status_all;
              checked string:checked;
              id string:status_all"/>
       <label for="status_all">all</label>
      </div>
     </form>
</div>
</div>


<div id="left-hand-navigation">
<!--  Main Menu NEED LEVEL TWO HEADER AND FOOTER -->
<div id="menu">
  <ul class="level-one">
    <li><a href="http://python.org/about" title="About The Python Language">About</a></li>
    <li><a href="http://python.org/news" title="">News</a></li>
    <li><a href="http://python.org/doc" title="">Documentation</a></li>
    <li><a href="http://python.org/download" title="">Download</a></li>
    <li><a href="http://python.org/community" title="">Community</a></li>
    <li><a href="http://python.org/psf" title="Python Software Foundation">Foundation</a></li>
    <li><a href="http://docs.python.org/devguide/" title="Python Core Language Development">Core Development</a></li>
    <li class="selected"><a href="." class="selected" title="Python Issue Tracker">Issue Tracker</a>
      <ul class="level-two">
        <li tal:condition="python:request.user.hasPermission('View', 'issue')">
          <strong i18n:translate="">Issues</strong>
          <ul class="level-three">
            <li tal:condition="python:request.user.hasPermission('Create', 'issue')">
              <a href="issue?@template=item" i18n:translate="">Create New</a>
            </li>
            <li><a href="issue?@template=search&amp;status=1" i18n:translate="">Search</a></li>
            <li><a href="issue?@action=random">Random Issue</a></li>
            <li>
              <form method="post" action="#">
                <input type="submit" class="form-small" value="Show issue:" i18n:attributes="value"/>
                <input class="form-small" size="4" type="text" name="@number"/>
                <input type="hidden" name="@type" value="issue"/>
                <input type="hidden" name="@action" value="show"/>
              </form>
            </li>
          </ul>
        </li>


        <li tal:condition="python:request.user.hasPermission('View', 'issue')">
          <strong i18n:translate="">Summaries</strong>
          <ul class="level-three">
            <li tal:condition="python:request.user.username != 'anonymous'">
              <a href="#"
                tal:attributes="href python:request.indexargs_url('issue', {
                  '@sort': '-activity',
                  '@group': 'status',
                  '@filter': 'creator',
                  '@columns': 'id,activity,title,status',
                  '@search_text': '',
                  'creator': request.user.id,
                  '@dispname': i18n.gettext('Created by you'),
                  '@startwith': 0,
                })"
                i18n:translate="">Created by you</a>
            </li>

            <li tal:condition="python:request.user.username != 'anonymous'">
              <a href="#"
                tal:attributes="href python:request.indexargs_url('issue', {
                  '@sort': '-activity',
                  '@group': 'status',
                  '@filter': 'nosy',
                  '@columns': 'id,activity,title,status,creator',
                  '@search_text': '',
                  'nosy': request.user.id,
                  '@dispname': i18n.gettext('Followed by you'),
                  '@startwith': 0,
                })"
                i18n:translate="">Followed by you</a>
            </li>

            <li tal:condition="python:request.user.username != 'anonymous' and
                          request.user.hasRole('Developer')">
              <a href="#"
                tal:attributes="href python:request.indexargs_url('issue', {
                  '@sort': '-activity',
                  '@group': 'status',
                  '@filter': 'assignee',
                  '@columns': 'id,activity,title,creator,status',
                  '@search_text': '',
                  'assignee': request.user.id,
                  '@dispname': i18n.gettext('Assigned to you'),
                  '@startwith': 0,
                })"
                i18n:translate="">Assigned to you</a>
            </li>

            <li>
              <a href="#"
                tal:attributes="href python:request.indexargs_url('issue', {
                  '@action': 'search',
                  '@sort': '-activity',
                  '@group': 'priority',
                  '@filter': '',
                  '@columns': columns,
                  'keywords': 2,
                  'status': 1,
                  '@dispname': i18n.gettext('Issues with patch'),
                  '@startwith': 0,
                })"
                i18n:translate="">Issues with patch</a>
            </li>

            <li>
              <a href="#"
                tal:attributes="href python:request.indexargs_url('issue', {
                  '@sort': '-activity',
                  '@group': 'priority',
                  '@columns': columns,
                  '@action': 'search',
                  '@filter': '',
                  'keywords': 6,
                  'status': 1,
                  '@dispname': i18n.gettext('Easy issues'),
                  '@startwith': 0,
                })"
                i18n:translate="">Easy issues</a>
            </li>

          </ul>
        </li>


        <li tal:condition="python:request.user.username=='anonymous'">
          <strong i18n:translate="">User</strong>
          <form method="post" action="#">
          <ul class="level-three">
            <li>
                <tal:span i18n:translate="">Login</tal:span>&nbsp;(OpenID&nbsp;possible)<br />
                <a style="display:inline;width:0;margin:0" tal:repeat="prov python:utils.openid_links(request)" tal:attributes="href prov/href">
                  <img hspace="0" vspace="0" width="16" height="16" tal:attributes="src prov/src;title prov/title;alt prov/alt"/></a>
                <input size="10" name="openid_identifier" style="background:url(http://wiki.openid.net/f/openid-16x16.gif)
                  center left no-repeat;padding-left:16px"/><br/>
                <input size="10" type="password" name="__login_password"/><br/>
                <input type="hidden" name="@action" value="Login"/>
                <input type="checkbox" name="remember" id="remember"/>
                <label for="remember" i18n:translate="">Remember me?</label><br/>
                <input class="form-small" type="submit" value="Login" i18n:attributes="value"/><br/>
                <input type="hidden" name="__came_from" tal:attributes="value string:${request/env/PATH_INFO}"/>
                <span tal:replace="structure request/indexargs_form" />
            </li>
            <li>
                <a href="user?@template=register" tal:condition="python:request.user.hasPermission('Register', 'user')"
                  i18n:translate="">Register</a>
            </li>
            <li><a href="user?@template=forgotten" i18n:translate="">Lost&nbsp;your&nbsp;login?</a></li>
          </ul>
          </form>
        </li>

        <li tal:condition="python:request.user.username != 'anonymous'">
          <strong i18n:translate="">Hello, <span i18n:name="user" tal:replace="request/user/username">username</span></strong>
          <ul class="level-three">
            <li><a tal:attributes="href string:user${request/user/id}" i18n:translate="">Your Details</a></li>
            <li><a tal:attributes="href python:request.indexargs_url('', {'@action':'logout'})" i18n:translate="">Logout</a></li>
          </ul>
        </li>

        <li tal:condition="python:request.user.hasPermission('View', 'query')">
          <span i18n:translate=""><strong>Your Queries</strong> (<a class="nomargin" href="query?@template=edit">edit</a>)</span>
          <ul class="level-three" tal:repeat="qs request/user/queries">
            <li><a tal:attributes="href string:${qs/klass}?${qs/url}&@dispname=${qs/name}" tal:content="qs/name">link</a></li>
          </ul>
        </li>

        <li tal:condition="python:request.user.hasPermission('View', 'user')">
          <strong i18n:translate="">Administration</strong>
          <ul class="level-three">
            <li tal:condition="python:request.user.hasPermission('Edit', None)">
                <a href="home?@template=classlist" i18n:translate="">Class List</a></li>
            <li tal:condition="python:request.user.hasPermission('View', 'user') or request.user.hasPermission('Edit', 'user')">
                <a href="user?@sort=username"  i18n:translate="">User List</a></li>
            <li tal:condition="python:request.user.hasPermission('View', 'user') or request.user.hasPermission('Edit', 'user')">
                <a href="user?iscommitter=1&@action=search&@sort=username&@pagesize=300">Commiter List</a></li>
            <li tal:condition="python:request.user.hasPermission('Create', 'user')">
                <a href="user?@template=item" i18n:translate="">Add User</a></li>
            <li tal:condition="python:request.user.hasPermission('Edit', 'keyword')">
                <a href="keyword" i18n:translate="">Edit Keywords</a></li>
            <li tal:condition="python:request.user.hasPermission('SB: May Classify',None)">
                <a href="msg?@sort=-spambayes_score">View Spam</a></li>
          </ul>
        </li>

        <li>
          <strong i18n:translate="">Help</strong>
          <ul class="level-three">
            <li><a href="http://docs.python.org/devguide/triaging.html">
                Tracker Documentation</a></li>
            <li><a href="http://wiki.python.org/moin/TrackerDevelopment">
                Tracker Development</a></li>
            <li><a href="http://psf.upfronthosting.co.za/roundup/meta">
                Report Tracker Problem</a></li>
          </ul>
        </li>

      </ul>
    </li>
  </ul>
</div> <!-- menu -->
</div> <!-- left-hand-navigation -->

<div id="content-body">
<div id="body-main">
<div id="content">
<div id="breadcrumb"><span metal:define-slot="body_title">body title</span></div>
 <p tal:condition="options/error_message | nothing" class="error-message"
    tal:repeat="m options/error_message" tal:content="structure m" />
 <p tal:condition="options/ok_message | nothing" class="ok-message">
  <span tal:content="structure python:
        '<br/ >'.join(m.replace('nosy_count', '').replace('message_count', '')
        for m in options['ok_message']) + '<br/ >'" />
  <a class="form-small" tal:attributes="href request/current_url"
     i18n:translate="">clear this message</a>
 </p>
 <tal:block metal:define-slot="content">Page content goes here</tal:block>
</div> <!-- content-body -->
<div id="footer">
<div id="credits">
<a href="http://www.python.org/about/website">Website maintained by the Python community</a><br />

<a href="http://www.upfrontsystems.co.za/" title="issue tracker hosting provided by Upfront Systems, South Africa">hosting by Upfront Systems</a> /
  <a href="http://roundup.sf.net" title="Powered by the Roundup Issue Tracker">powered by Roundup</a>
</div> <!-- credits -->
Copyright &copy; 1990-2012, <a href="http://python.org/psf">Python Software Foundation</a><br />
<a href="http://python.org/about/legal">Legal Statements</a>
</div> <!-- footer -->
</div> <!-- body-main -->
</div> <!-- content -->

<pre tal:condition="request/form/deissue | nothing" tal:content="request">
</pre>

</body>
</html>
</tal:block>

<!--
The following macros are intended to be used in search pages.

The invoking context must define a "name" variable which names the
property being searched.

See issue.search.html in the classic template for examples.
-->

<!-- creates a th and a label: -->
<th metal:define-macro="th_label"
    tal:define="required required | python:[]"
    tal:attributes="class python:(name in required) and 'required' or nothing">
  <label tal:attributes="for name" tal:content="label" i18n:translate="">text</label>
	<metal:x define-slot="behind_the_label" />
</th>

<td metal:define-macro="search_input">
  <input tal:attributes="value python:request.form.getvalue(name) or nothing;
                         name name;
                         id name"/>
</td>

<td metal:define-macro="search_date">
  <input tal:attributes="value python:request.form.getvalue(name) or nothing;
                         name name;
                         id name"/>
  <a class="classhelp"
	 tal:attributes="href python:'''javascript:help_window('issue?@template=calendar&property=%s&form=itemSynopsis', 300, 200)'''%name">(cal)</a>
</td>

<td metal:define-macro="search_popup">
  <!--
    context needs to specify the popup "columns" as a comma-separated
    string (eg. "id,title" or "id,name,description") as well as name
  -->
  <input tal:attributes="value python:request.form.getvalue(name) or nothing;
                         name name;
                         id name"/>
  <span tal:replace="structure python:db[db_klass].classhelp(columns,
                                      property=name)" />
</td>

<td metal:define-macro="search_select">
  <select tal:attributes="name name; id name"
          tal:define="value python:request.form.getvalue(name)">
    <option value="" i18n:translate="">don't care</option>
    <metal:slot define-slot="extra_options" />
    <option value="" i18n:translate="" disabled="disabled">------------</option>
    <option tal:repeat="s python:db[db_klass].list()"
            tal:attributes="value s/id; selected python:value == s.id"
            tal:content="python:s[db_content]"></option>
  </select>
</td>

<td metal:define-macro="search_select_keywords">
  <div id="keywords_keyword">
    <select name="keywords" id="keywords"
            tal:define="value python:request.form.getvalue(name)">
      <option value="" i18n:translate="">don't care</option>
      <metal:slot define-slot="extra_options" />
      <option value="" i18n:translate="" disabled="disabled">------------</option>
      <option tal:repeat="s python:db[db_klass].list()"
              tal:attributes="value s/id; selected python:value == s.id"
              tal:content="python:s[db_content]"></option>
    </select>
    <a class="classhelp"
       href="javascript:help_window('issue?@template=keywords_expr&property=keyword&form=itemSynopsis', 500, 200)">(expr)</a>
  </div>
</td>

<!-- like search_select, but translates the further values.
Could extend it (METAL 1.1 attribute "extend-macro")
-->
<td metal:define-macro="search_select_translated">
  <select tal:attributes="name name; id name"
          tal:define="value python:request.form.getvalue(name)">
    <option value="" i18n:translate="">don't care</option>
    <metal:slot define-slot="extra_options" />
    <option value="" i18n:translate="" disabled="disabled">------------</option>
    <option tal:repeat="s python:db[db_klass].list()"
            tal:attributes="value s/id; selected python:value == s.id"
						tal:content="python:s[db_content]"
						i18n:translate=""></option>
  </select>
</td>

<!-- currently, there is no convenient API to get a list of all roles -->
<td metal:define-macro="search_select_roles"
	  tal:define="onchange onchange | nothing">
  <select name=roles id=roles tal:attributes="onchange onchange">
    <option value="" i18n:translate="">don't care</option>
    <option value="" i18n:translate="" disabled="disabled">------------</option>
    <option value="User">User</option>
    <option value="Developer">Developer</option>
    <option value="Coordinator">Coordinator</option>
  </select>
</td>

<td metal:define-macro="search_multiselect">
  <input tal:attributes="value python:request.form.getvalue(name) or nothing;
                         name name;
                         id name"/>
  <span tal:replace="structure python:db[db_klass].classhelp(db_content,
                                        property=name, width='600')" />
</td>

<td metal:define-macro="search_checkboxes">
 <ul class="search-checkboxes"
     tal:define="value python:request.form.getvalue(name);
                 values python:value and value.split(',') or []">
 <li tal:repeat="s python:db[db_klass].list()">
  <input type="checkbox" tal:attributes="name name; id string:$name-${s/id};
    value s/id; checked python:s.id in values" />
  <label tal:attributes="for string:$name-${s/id}"
         tal:content="python:s[db_content]" />
 </li>
 <li metal:define-slot="no_value_item">
  <input type="checkbox" value="-1" tal:attributes="name name;
     id string:$name--1; checked python:value == '-1'" />
  <label tal:attributes="for string:$name--1" i18n:translate="">no value</label>
 </li>
 </ul>
</td>

<td metal:define-macro="column_input">
  <input type="checkbox" name="@columns"
         tal:attributes="value name;
                         checked python:name in cols"/>
</td>

<td metal:define-macro="sort_input">
  <input type="radio" name="@sort"
         tal:attributes="value name;
                         checked python:name == sort_on"/>
</td>

<td metal:define-macro="group_input">
  <input type="radio" name="@group"
         tal:attributes="value name;
                         checked python:name == group_on"/>
</td>

<!--
The following macros are intended for user editing.

The invoking context must define a "name" variable which names the
property being searched; the "edit_ok" variable tells whether the
current user is allowed to edit.

See user.item.html in the classic template for examples.
-->
<script metal:define-macro="user_utils" type="text/javascript" src="@@file/user_utils.js"></script>

<!-- src: value will be re-used for other input fields -->
<input metal:define-macro="user_src_input"
    type="text" tal:attributes="onblur python:edit_ok and 'split_name(this)';
    id name; name name; value value; readonly not:edit_ok"
    value="heinz.kunz"/>
<!-- normal: no re-using -->
<input metal:define-macro="user_normal_input" type="text"
    tal:attributes="id name; name name; value value; readonly not:edit_ok"
    value="heinz"/>
<!-- password: type; no initial value -->
    <input metal:define-macro="user_pw_input" type="password"
    tal:attributes="id name; name name; readonly not:edit_ok" value=""/>
    <input metal:define-macro="user_confirm_input" type="password"
    tal:attributes="id name; name string:@confirm@$name; readonly not:edit_ok" value=""/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.