[Python-checkins] r52978 - in tracker/instances/python-dev: html/issue.item.html schema.py
erik.forsberg
python-checkins at python.org
Sat Dec 9 23:49:30 CET 2006
Author: erik.forsberg
Date: Sat Dec 9 23:48:55 2006
New Revision: 52978
Modified:
tracker/instances/python-dev/html/issue.item.html
tracker/instances/python-dev/schema.py
Log:
* Resolve http://psf.upfronthosting.co.za/roundup/meta/issue3 by using
filter_sql to find users with the Developer role.
Remove "Debugger" permission, as this solution triggers directly on
the Developer role.
A bit hackish, but I think it'll do.
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 Sat Dec 9 23:48:55 2006
@@ -117,10 +117,10 @@
<td tal:condition="context/status/is_edit_ok">
<select name="assignee">
<option value="-1">nobody</option>
- <tal:block tal:repeat="user db/user/list">
- <option tal:condition="python:user.hasPermission('Debugger', context._classname)"
- tal:attributes="value user/id; selected python:user.id == context.assignee"
- tal:content="user/username"></option>
+ <tal:block tal:repeat="userdata python:db._db.user.filter_sql('select id,_username from _user where _roles like \'%Developer%\'')">
+ <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>
Modified: tracker/instances/python-dev/schema.py
==============================================================================
--- tracker/instances/python-dev/schema.py (original)
+++ tracker/instances/python-dev/schema.py Sat Dec 9 23:48:55 2006
@@ -168,10 +168,6 @@
db.security.addPermissionToRole('Developer', 'Edit', cl)
db.security.addPermissionToRole('Developer', 'Create', cl)
-p = db.security.addPermission(name='Debugger', klass='issue',
- description='User can be assigned issues')
-db.security.addPermissionToRole('Developer', p)
-
##########################
# Coordinator permissions
More information about the Python-checkins
mailing list