[Python-checkins] r88781 - in tracker/instances/python-dev: html/issue.item.html html/user.item.html schema.py

martin.v.loewis python-checkins at python.org
Tue Mar 15 22:48:49 CET 2011


Author: martin.v.loewis
Date: Tue Mar 15 22:48:49 2011
New Revision: 88781

Log:
Extend schema to record committers.


Modified:
   tracker/instances/python-dev/html/issue.item.html
   tracker/instances/python-dev/html/user.item.html
   tracker/instances/python-dev/schema.py

Modified: tracker/instances/python-dev/html/issue.item.html
==============================================================================
--- tracker/instances/python-dev/html/issue.item.html	(original)
+++ tracker/instances/python-dev/html/issue.item.html	Tue Mar 15 22:48:49 2011
@@ -298,6 +298,9 @@
    <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>
+       <tal:if condition="msg/author/iscommitter">
+         <span title="Python committer"><img src="http://hg.python.org/static/hgicon.png"/></span>
+       </tal:if>
    </th>
    <th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%Y-%m-%d %H:%M')"
        i18n:name="date" /></th>

Modified: tracker/instances/python-dev/html/user.item.html
==============================================================================
--- tracker/instances/python-dev/html/user.item.html	(original)
+++ tracker/instances/python-dev/html/user.item.html	Tue Mar 15 22:48:49 2011
@@ -116,6 +116,11 @@
    </td>
 </tr>
 
+<tr>
+  <th>Is Committer</th>
+   <td><span tal:replace="structure context/iscommitter/field"/>
+  </td>
+</tr>
  <tr tal:define="name string:address; label string:E-mail address; value context/address">
   <th metal:use-macro="th_label">E-mail address</th>
   <td tal:define="mailto python:context.address.field(id='address');

Modified: tracker/instances/python-dev/schema.py
==============================================================================
--- tracker/instances/python-dev/schema.py	(original)
+++ tracker/instances/python-dev/schema.py	Tue Mar 15 22:48:49 2011
@@ -95,6 +95,7 @@
              contrib_form=Boolean(),
              contrib_form_date=Date(),
              openids=String(), # space separated list
+             iscommitter=Boolean(),
              )
 user.setkey("username")
 db.security.addPermission(name='Register', klass='user',
@@ -340,7 +341,8 @@
                 'phone', 'organisation',
                 'alternate_addresses',
                 'queries',
-                'timezone')) # Note: 'roles' excluded - users should not be able to edit their own roles. Also excluded: contrib_form, contrib_form_date
+                'timezone')) # Note: 'roles' excluded - users should not be able to edit their own roles.
+                             # Also excluded: contrib_form, contrib_form_date, iscommitter
 for r in 'User', 'Developer':
     db.security.addPermissionToRole(r, p)
 


More information about the Python-checkins mailing list