Skip to content

Commit e192c2c

Browse files
author
Alexander Smishlajev
committed
fix Permission.__repr__()
1 parent 80c86fd commit e192c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/security.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test(self, db, permission, classname, property, userid, itemid):
5757

5858
def __repr__(self):
5959
return '<Permission 0x%x %r,%r,%r,%r>'%(id(self), self.name,
60-
self.klass, self.property, self.check)
60+
self.klass, self.properties, self.check)
6161

6262
class Role:
6363
''' Defines a Role with the attributes
@@ -201,7 +201,7 @@ def addPermissionToRole(self, rolename, permission, classname=None):
201201
'rolename' is the name of the role to add the permission to.
202202
203203
'permission' is either a Permission *or* a permission name
204-
accompanied by 'classname' (thus in the second case a Permission
204+
accompanied by 'classname' (thus in the second case a Permission
205205
is obtained by passing 'permission' and 'classname' to
206206
self.getPermission)
207207
'''

0 commit comments

Comments
 (0)