[Python-checkins] r67087 - in tracker/instances/python-dev: html/issue.item.html schema.py
martin.v.loewis
python-checkins at python.org
Mon Nov 3 20:19:51 CET 2008
Author: martin.v.loewis
Date: Mon Nov 3 20:19:50 2008
New Revision: 67087
Log:
Add stage field.
Modified:
tracker/instances/python-dev/html/issue.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 Mon Nov 3 20:19:50 2008
@@ -55,17 +55,10 @@
<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.severity.classhelp('id,name,description',label='Severity')" />:
- </th-->
-<!-- Set severity to normal per default -->
-<!--td tal:condition="not: context/severity"
- tal:content="structure
- python:context.severity.menu(value=db.severity.filter(filterspec={'name':'normal'})[0].id)">severity></td>
-
- <td tal:condition="context/severity"
- tal:content="structure context/severity/menu">severity</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>
Modified: tracker/instances/python-dev/schema.py
==============================================================================
--- tracker/instances/python-dev/schema.py (original)
+++ tracker/instances/python-dev/schema.py Mon Nov 3 20:19:50 2008
@@ -45,6 +45,13 @@
order=Number())
priority.setkey('name')
+# Stage
+stage = Class(db, 'stage',
+ name = String(),
+ description = String(),
+ order = Number())
+stage.setkey('name')
+
# Status
status = Class(db, "status",
name=String(),
@@ -125,7 +132,8 @@
status=Link('status'),
resolution=Link('resolution'),
superseder=Link('issue'),
- keywords=Multilink("keyword"))
+ keywords=Multilink("keyword"),
+ stage=Link('stage'))
#
# TRACKER SECURITY SETTINGS
@@ -152,7 +160,7 @@
##########################
for cl in ('issue_type', 'severity', 'component',
- 'version', 'priority', 'status', 'resolution',
+ 'version', 'priority', 'stage', 'status', 'resolution',
'issue', 'keyword'):
db.security.addPermissionToRole('User', 'View', cl)
db.security.addPermissionToRole('Anonymous', 'View', cl)
@@ -236,7 +244,7 @@
# Developer permissions
##########################
for cl in ('issue_type', 'severity', 'component',
- 'version', 'priority', 'status', 'resolution',
+ 'version', 'priority', 'stage', 'status', 'resolution',
'issue', 'file', 'msg', 'keyword'):
db.security.addPermissionToRole('Developer', 'View', cl)
@@ -249,7 +257,7 @@
# Coordinator permissions
##########################
for cl in ('issue_type', 'severity', 'component',
- 'version', 'priority', 'status', 'resolution', 'issue', 'file', 'msg'):
+ 'version', 'priority', 'stage', 'status', 'resolution', 'issue', 'file', 'msg'):
db.security.addPermissionToRole('Coordinator', 'View', cl)
db.security.addPermissionToRole('Coordinator', 'Edit', cl)
db.security.addPermissionToRole('Coordinator', 'Create', cl)
More information about the Python-checkins
mailing list