[Zope3-checkins] CVS: Zope3/src/zope/app/security - permission.py:1.2
Jim Fulton
jim@zope.com
Tue, 21 Jan 2003 16:22:18 -0500
Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv10423
Modified Files:
permission.py
Log Message:
Changed permission fields to use permission ids, rather than permission objects
=== Zope3/src/zope/app/security/permission.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/security/permission.py:1.1 Thu Dec 26 13:49:06 2002
+++ Zope3/src/zope/app/security/permission.py Tue Jan 21 16:21:46 2003
@@ -34,5 +34,5 @@
def _validate(self, value):
super(PermissionField, self)._validate(value)
service = getService(self.context, 'Permissions')
- if service.getPermission(value.getId()) is None:
+ if service.getPermission(value) is None:
raise ValidationError("Unknown permission", value)