comparison roundup/admin.py @ 3360:2f8f4877be65 maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Fri, 24 Jun 2005 05:34:15 +0000
parents 7ed2da71c5c3
children 446f769b813b
comparison
equal deleted inserted replaced
3358:f6ecda229195 3360:2f8f4877be65
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.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 $
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
1244 print _('New Email users get the Role "%(role)s"')%locals() 1244 print _('New Email users get the Role "%(role)s"')%locals()
1245 roles.sort() 1245 roles.sort()
1246 for rolename, role in roles: 1246 for rolename, role in roles:
1247 print _('Role "%(name)s":')%role.__dict__ 1247 print _('Role "%(name)s":')%role.__dict__
1248 for permission in role.permissions: 1248 for permission in role.permissions:
1249 d = permission.__dict__
1249 if permission.klass: 1250 if permission.klass:
1250 print _(' %(description)s (%(name)s for "%(klass)s" ' 1251 if permission.properties:
1251 'only)')%permission.__dict__ 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
1252 else: 1257 else:
1253 print _(' %(description)s (%(name)s)')%permission.__dict__ 1258 print _(' %(description)s (%(name)s)')%d
1254 return 0 1259 return 0
1255 1260
1256 def run_command(self, args): 1261 def run_command(self, args):
1257 '''Run a single command 1262 '''Run a single command
1258 ''' 1263 '''

Roundup Issue Tracker: http://roundup-tracker.org/