Mercurial > p > roundup > code
comparison roundup/admin.py @ 3359:cf9149fd3c6d
have 'roundup-admin security' display property restrictions [SF#1222135]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 24 Jun 2005 05:32:56 +0000 |
| parents | 032ff189ba33 |
| children | c1c67c62b699 |
comparison
equal
deleted
inserted
replaced
| 3357:5c8822d10fdc | 3359:cf9149fd3c6d |
|---|---|
| 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 # $Id: admin.py,v 1.94 2005-05-06 06:49:54 a1s Exp $ | 19 # $Id: admin.py,v 1.95 2005-06-24 05:32:56 richard Exp $ |
| 20 | 20 |
| 21 '''Administration commands for maintaining Roundup trackers. | 21 '''Administration commands for maintaining Roundup trackers. |
| 22 ''' | 22 ''' |
| 23 __docformat__ = 'restructuredtext' | 23 __docformat__ = 'restructuredtext' |
| 24 | 24 |
| 1249 print _('New Email users get the Role "%(role)s"')%locals() | 1249 print _('New Email users get the Role "%(role)s"')%locals() |
| 1250 roles.sort() | 1250 roles.sort() |
| 1251 for rolename, role in roles: | 1251 for rolename, role in roles: |
| 1252 print _('Role "%(name)s":')%role.__dict__ | 1252 print _('Role "%(name)s":')%role.__dict__ |
| 1253 for permission in role.permissions: | 1253 for permission in role.permissions: |
| 1254 d = permission.__dict__ | |
| 1254 if permission.klass: | 1255 if permission.klass: |
| 1255 print _(' %(description)s (%(name)s for "%(klass)s" ' | 1256 if permission.properties: |
| 1256 'only)')%permission.__dict__ | 1257 print _(' %(description)s (%(name)s for "%(klass)s"' |
| 1258 ': %(properties)s only)')%d | |
| 1259 else: | |
| 1260 print _(' %(description)s (%(name)s for "%(klass)s" ' | |
| 1261 'only)')%d | |
| 1257 else: | 1262 else: |
| 1258 print _(' %(description)s (%(name)s)')%permission.__dict__ | 1263 print _(' %(description)s (%(name)s)')%d |
| 1259 return 0 | 1264 return 0 |
| 1260 | 1265 |
| 1261 def run_command(self, args): | 1266 def run_command(self, args): |
| 1262 '''Run a single command | 1267 '''Run a single command |
| 1263 ''' | 1268 ''' |
