[Zope3-checkins]
SVN: Zope3/trunk/src/zope/security/examples/sandbox_security.py
Fixed default arguments values
Dmitry Vasiliev
dima at hlabs.spb.ru
Wed Aug 11 04:50:39 EDT 2004
Log message for revision 26993:
Fixed default arguments values
Changed:
U Zope3/trunk/src/zope/security/examples/sandbox_security.py
-=-
Modified: Zope3/trunk/src/zope/security/examples/sandbox_security.py
===================================================================
--- Zope3/trunk/src/zope/security/examples/sandbox_security.py 2004-08-11 08:27:23 UTC (rev 26992)
+++ Zope3/trunk/src/zope/security/examples/sandbox_security.py 2004-08-11 08:50:39 UTC (rev 26993)
@@ -116,8 +116,12 @@
self.interaction = None
-def PermissionMapChecker(permissions_map={}, set_permissions=None):
+def PermissionMapChecker(permissions_map=None, set_permissions=None):
"""Create a checker from using the 'permission_map.'"""
+ if permissions_map is None:
+ permissions_map = {}
+ if set_permissions is None:
+ set_permissions = {}
res = {}
for key, value in permissions_map.items():
for method in value:
More information about the Zope3-Checkins
mailing list