Skip to content

Commit b40df9c

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent b62aaa4 commit b40df9c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Fixed:
1212
- enabled disabling of REMOTE_USER for when it's not a valid username (sf
1313
bug 1190187)
1414
- fix invocation of hasPermission from templating code (sf bug 1224172)
15+
- have 'roundup-admin security' display property restrictions (sf bug
16+
1222135)
1517

1618

1719
2005-05-02 0.8.3

roundup/admin.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.85.2.7 2005-05-06 06:53:00 a1s Exp $
19+
# $Id: admin.py,v 1.85.2.8 2005-06-24 05:34:15 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -1246,11 +1246,16 @@ def do_security(self, args):
12461246
for rolename, role in roles:
12471247
print _('Role "%(name)s":')%role.__dict__
12481248
for permission in role.permissions:
1249+
d = permission.__dict__
12491250
if permission.klass:
1250-
print _(' %(description)s (%(name)s for "%(klass)s" '
1251-
'only)')%permission.__dict__
1251+
if permission.properties:
1252+
print _(' %(description)s (%(name)s for "%(klass)s"'
1253+
': %(properties)s only)')%d
1254+
else:
1255+
print _(' %(description)s (%(name)s for "%(klass)s" '
1256+
'only)')%d
12521257
else:
1253-
print _(' %(description)s (%(name)s)')%permission.__dict__
1258+
print _(' %(description)s (%(name)s)')%d
12541259
return 0
12551260

12561261
def run_command(self, args):

0 commit comments

Comments
 (0)