[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - security.py:1.3
Christian Zagrodnick
cz@gocept.com
Mon, 14 Apr 2003 04:22:20 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv5394/lib/apelib/zope2
Modified Files:
security.py
Log Message:
code failed if there was a permission and no role assigned to it
=== Products/Ape/lib/apelib/zope2/security.py 1.2 => 1.3 ===
--- Products/Ape/lib/apelib/zope2/security.py:1.2 Fri Apr 11 05:39:32 2003
+++ Products/Ape/lib/apelib/zope2/security.py Mon Apr 14 04:22:19 2003
@@ -212,7 +212,7 @@
obj._proxy_roles = proxy_roles
for p, acquired in permission_acquired.items():
- roles = permission_roles.get(p)
+ roles = permission_roles.get(p, [])
if not acquired:
roles = tuple(roles)
setattr(obj, pname(p), roles)