Source

bugs.python.org / html / issue.item.html

Full commit
stefan.seefeld 2a440e2 


erik.forsberg f9a0911 
stefan.seefeld 2a440e2 



erik.forsberg f9a0911 
stefan.seefeld 2a440e2 

ezio.melotti 8168b49 




stefan.seefeld 2a440e2 

erik.forsberg f9a0911 
stefan.seefeld 2a440e2 
erik.forsberg f9a0911 
stefan.seefeld 2a440e2 
erik.forsberg f9a0911 
stefan.seefeld 2a440e2 

erik.forsberg f9a0911 
stefan.seefeld 2a440e2 






















stefan.seefeld 9c6bf6a 
stefan.seefeld 2a440e2 
stefan.seefeld 9c6bf6a 
stefan.seefeld 2a440e2 
stefan.seefeld ceafaf1 
stefan.seefeld 2a440e2 







martin.v.loewis a129c72 



stefan.seefeld 2a440e2 





























martin.v.loewis 150f1ef 
stefan.seefeld 2a440e2 


martin.v.loewis 0c3ff6b 
martin.v.loewis 150f1ef 
stefan.seefeld 2a440e2 








erik.forsberg 2f9debf 

stefan.seefeld 2a440e2 

erik.forsberg 2f9debf 




stefan.seefeld 2a440e2 



martin.v.loewis 8e616d9 
stefan.seefeld 2a440e2 

erik.forsberg bffc300 
erik.forsberg 263df6d 


stefan.seefeld 2a440e2 





ezio.melotti 8168b49 
stefan.seefeld 2a440e2 



martin.v.loewis c2cdddc 
ezio.melotti 8168b49 




stefan.seefeld 2a440e2 

stefan.seefeld 8679e02 
erik.forsberg 6e3e4fd 
stefan.seefeld 8679e02 


martin.v.loewis 6dcf05c 
brett.cannon cc82e77 
erik.forsberg 9934b1d 

stefan.seefeld 8679e02 
stefan.seefeld 2a440e2 
martin.v.loewis ce2168b 
stefan.seefeld 2a440e2 

martin.v.loewis c583f41 
stefan.seefeld 2a440e2 




martin.v.loewis 82914e9 







stefan.seefeld 2a440e2 



















martin.v.loewis 4f95ec4 
stefan.seefeld 2a440e2 
martin.v.loewis f340667 
stefan.seefeld 2a440e2 







erik.forsberg 02e273d 
stefan.seefeld 2a440e2 


martin.v.loewis d59de20 
stefan.seefeld 2a440e2 





martin.v.loewis 4f95ec4 
stefan.seefeld 2a440e2 
erik.forsberg 02e273d 
stefan.seefeld 2a440e2 



martin.v.loewis 100ff3f 
stefan.seefeld 2a440e2 









martin.v.loewis c2cdddc 


martin.v.loewis 96ec3b6 
stefan.seefeld 2a440e2 
martin.v.loewis be89f93 


martin.v.loewis 4d80cbb 
martin.v.loewis f3010cb 


martin.v.loewis 4f95ec4 
stefan.seefeld 2a440e2 

martin.v.loewis 100ff3f 
stefan.seefeld 2a440e2 








erik.forsberg 0e945e8 



erik.forsberg 520b5a7 
erik.forsberg 7b1482b 
stefan.seefeld 2a440e2 




martin.v.loewis 30b379c 

stefan.seefeld 2a440e2 




<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title">
<tal:block condition="context/id" i18n:translate=""
 >Issue <span tal:replace="context/id" i18n:name="id"
 />: <span tal:replace="context/title" i18n:name="title"
 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
/></tal:block>
<tal:block condition="not:context/id" i18n:translate=""
 >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
/></tal:block>
</title>

<metal:slot fill-slot="more-javascript">
<script type="text/javascript" src="@@file/issue.item.js"></script>
</metal:slot>

<tal:block metal:fill-slot="body_title">
 <span tal:condition="python: not (context.id or context.is_edit_ok())"
  tal:omit-tag="python:1" i18n:translate="">New Issue</span>
 <span tal:condition="python: not context.id and context.is_edit_ok()"
  tal:omit-tag="python:1" i18n:translate="">New Issue Editing</span>
 <span tal:condition="python: context.id and not context.is_edit_ok()"
  tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
  replace="context/id" i18n:name="id" /></span>
 <span tal:condition="python: context.id and context.is_edit_ok()"
  tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
  replace="context/id" i18n:name="id" /> Editing</span>
</tal:block>

<td class="content" metal:fill-slot="content">

<p tal:condition="python:not (context.is_view_ok()
 or request.user.hasRole('Anonymous'))" i18n:translate="">
 You are not allowed to view this page.</p>

<p tal:condition="python:not context.is_view_ok()
 and request.user.hasRole('Anonymous')" i18n:translate="">
 Please login with your username and password.</p>

<div tal:condition="context/is_view_ok">

<form method="POST" name="itemSynopsis"
      onSubmit="return submit_once()" enctype="multipart/form-data"
      tal:attributes="action context/designator">

<fieldset><legend>classification</legend>
<table class="form">
<tr>
 <th class="required" i18n:translate="">Title:</th>
 <td colspan="3" tal:condition="context/title/is_edit_ok"
     tal:content="structure python:context.title.field(size=60)">title</td>
 <td colspan="3" tal:condition="not:context/title/is_edit_ok">
  <span tal:content="structure context/title/plain"/>
  <input type="hidden" name="title" tal:attributes="value context/title">
 </td>
</tr>

<tr>
 <th class="required" i18n:translate="">
   <span tal:replace="structure python:db.issue_type.classhelp('id,name,description',label='Type')" />:
 </th>
 <td tal:content="structure context/type/menu">type</td>
 <th i18n:translate="">
   <span tal:replace="structure python:db.stage.classhelp('id,name,description',label='Stage')" />:
 </th>
 <td tal:content="structure context/stage/menu">components</td>
</tr>

<tr>
 <th i18n:translate="">
   <span tal:replace="structure python:db.component.classhelp('id,name,description',label='Components')" />:
 </th>
 <td tal:content="structure context/components/menu">components</td>
 <th i18n:translate="">
   <span tal:replace="structure python:db.version.classhelp('id,name,description',label='Versions')" />:
 </th>
 <td tal:content="structure context/versions/menu">versions</td>
</tr>
</table>
</fieldset>

<fieldset><legend>process</legend>
<table class="form">
<tr tal:condition="context/id">
 <th i18n:translate="">
   <span tal:replace="structure python:db.status.classhelp('id,name,description',label='Status')" />:
 </th>
 <td tal:content="structure context/status/menu">status</td>
 <th i18n:translate="">Resolution:</th>
 <td tal:content="structure context/resolution/menu">resolution</td>
</tr>

<tr tal:condition="context/id">
 <th>
  <tal:block i18n:translate="">Dependencies</tal:block>:
  <span tal:condition="context/dependencies/is_edit_ok"
        tal:replace="structure python:db.issue.classhelp('id,title,status', filter='status=0,1', property='dependencies')" />
 </th>
 <td>
  <span tal:replace="structure python:context.dependencies.field(showid=1,size=20)" />
  <span tal:condition="context/dependencies" tal:repeat="d python:context.dependencies.sorted('creation')">
   <br/>View: <a tal:attributes="href string:issue${d/id}; class string:${d/status}" tal:content="d/id"></a>
  </span>
 </td>
 <th i18n:translate="">
  <tal:block i18n:translate="">Superseder</tal:block>:
  <span tal:condition="context/superseder/is_edit_ok"
        tal:replace="structure python:db.issue.classhelp('id,title', filter='status=0,1', property='superseder')" />
 </th>
 <td>
  <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
 <span tal:condition="context/superseder">
<!--   <br><span i18n:translate="">View</span>:
     <a tal:repeat="sup context/superseder"
        tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)"
        tal:attributes="href string:issue${sup/id}; title sup/title;"></a> -->
   <br><span i18n:translate="">View</span>:
     <a tal:content="context/superseder/id"
        tal:attributes="href string:issue${context/superseder/id}; title context/superseder/title;"></a> 
  </span> 
 </td>
 </tr>
 <tr>
 <th><tal:block i18n:translate="">Assigned To</tal:block>:</th>
 <td tal:condition="context/assignee/is_edit_ok">
  <select name="assignee">
   <option value="-1">nobody</option>
   <tal:block tal:repeat="userdata python:db._db.user.filter_sql('select id,_username from _user where _roles like \'%Developer%\' order by _username')">
    <option tal:attributes="value python:userdata[0]; 
                            selected python:str(userdata[0]) == context.assignee._value"
            tal:content="python:userdata[1]"></option>
   </tal:block>
  </select>
 </td>
 <td tal:condition="not:context/assignee/is_edit_ok">
  <span tal:replace="structure context/assignee/plain" />
 </td>
 <th><tal:block i18n:translate="">Nosy List</tal:block><span tal:condition="context/nosy_count" tal:replace="python: ' (%d)' % context.nosy_count" />:
  <span tal:condition="context/nosy/is_edit_ok"
        tal:replace="structure python:db.user.classhelp('username,realname,address', property='nosy')" />
 </th>
 <td>
     <span tal:replace="structure context/nosy/field" />
     <span id="add_me_to_nosy" style="display: none"
        tal:define="current_user request/user/username"
        tal:condition="python:request.user.username != 'anonymous' and current_user not in str(context.nosy).replace(' ','').split(',')"
        tal:attributes="onclick string:add_to_nosy('$current_user')"
        onclick="add_to_nosy(the_current_username)" />
 </td>
</tr>
<tr>
 <th>
   <span tal:replace="structure python:db.priority.classhelp('id,name,description',label='Priority')" />:
 </th>
 <td tal:content="structure context/priority/menu">priority</td>
 <th tal:content="structure python:db.keyword.classhelp('id,name,description',label='Keywords')" />
 <td tal:content="structure python:context['keywords'].menu(height=5)">keywords</td>


</tr>
<tr tal:condition="context/is_edit_ok">
 <th><tal:block i18n:translate="">Comment</tal:block>:</th>
 <td colspan="3">
  <textarea tal:content="request/form/@note/value | default"
            name="@note" rows="10" cols="72"></textarea>
 </td>
</tr>

<tr tal:condition="context/is_edit_ok">
 <th><tal:block i18n:translate="">File</tal:block>:</th>
 <td colspan=3>
   <input type="hidden" name="@link@files" value="file-1">
   <input type="file" name="file-1@content" size="40">
 </td>
</tr>
<tr tal:condition="context/is_edit_ok">
 <th><tal:block i18n:translate="">File Description</tal:block>:</th>
 <td colspan=3><input type="edit" name="file-1@description" size="40"></td>
</tr>
</table>
</fieldset>
<table class="form">
<tr tal:condition="context/is_edit_ok">
 <td>
  &nbsp;
  <input type="hidden" name="@template" value="item">
  <input type="hidden" name="@required" value="title">
 </td>
 <td colspan=3>
  <span tal:replace="structure context/submit">submit button</span>
  <a tal:condition="context/id" tal:attributes="href context/copy_url"
   i18n:translate="">Make a copy</a>
 </td>
</tr>
</table>
</form>

<p tal:condition="context/id" i18n:translate="">
 Created on <b><tal:x replace="python:context.creation.pretty('%Y-%m-%d %H:%M')" i18n:name="creation" /></b>
 by <b><tal:x replace="context/creator" i18n:name="creator" /></b>,
 last changed <b><tal:x replace="python:context.activity.pretty('%Y-%m-%d %H:%M')" i18n:name="activity" /></b>
 by <b><tal:x replace="context/actor" i18n:name="actor" /></b>.
</p>

<table class="files" tal:condition="context/files">
 <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
 <tr>
  <th i18n:translate="">File name</th>
  <th i18n:translate="">Uploaded</th>
  <th i18n:translate="">Description</th>
  <th i18n:translate="">Edit</th>
  <th i18n:translate="">Remove</th>
 </tr>
 <tr tal:repeat="file python:context.files.sorted('creation')">
  <td>
   <a tal:attributes="href file/download_url"
      tal:content="file/name">dld link</a>
  </td>
  <td>
   <span tal:content="file/creator">creator's name</span>,
   <span tal:content="python:file.creation.pretty('%Y-%m-%d %H:%M')">creation date</span>
  </td>
  <td tal:content="file/description" />
  <td><a tal:condition="file/is_edit_ok"
          tal:attributes="href string:file${file/id}">edit</a>
  </td>
  <td>
   <form style="padding:0" method="post" tal:condition="file/is_edit_ok"
         tal:attributes="action string:issue${context/id}">
    <input type="hidden" name="@remove@files" tal:attributes="value file/id">
    <input type="hidden" name="@action" value="edit">
    <input type="submit" value="remove" i18n:attributes="value">
   </form>
  </td>
 </tr>
</table>

<table class="messages" tal:condition="context/messages">
 <tr><th colspan="4" class="header"
         tal:content="python:'Messages (%d)' % context.message_count"
         >Messages</th></tr>
 <tal:block tal:repeat="msg python:context.messages.sorted('creation')">
  <tr>
    <th tal:define="mid string:msg${msg/id}">
     <a tal:content="mid" tal:attributes="id mid; 
        href string:#$mid;"></a> - <a tal:attributes="href mid">(view)</a></th>
   <th i18n:translate="">Author: <tal:x replace="python:msg.author.realname.plain(unchecked=1)"
       i18n:name="author" /> (<tal:x replace="msg/author"/>)
       <tal:if condition="msg/author/contrib_form"><span title="Contributor form received">*</span></tal:if>
   </th>
   <th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%Y-%m-%d %H:%M')"
       i18n:name="date" /></th>
   <th>
    <form style="padding:0" method="post" tal:condition="msg/is_edit_ok"
          tal:attributes="action string:issue${context/id}">
     <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
     <input type="hidden" name="@action" value="edit">
     <input type="submit" value="remove" i18n:attributes="value">
    </form>
   </th>
  </tr>
  <tr>
   <td colspan="4" class="content">
    <p class="error-message"
       tal:condition="python:utils.sb_is_spam(msg)">
       Message has been classified as spam.
    </p>
    <pre tal:condition="python:msg.content.is_view_ok()"
         tal:content="structure python:utils.localReplace(msg.content.hyperlinked())">content</pre>
   </td>
  </tr>
 </tal:block>
</table>

<tal:block tal:condition="context/id" tal:define="history /context/history"
           tal:content="structure python:utils.clean_count(history)" />

</div>

</td>

</tal:block>