[Zope-Checkins] CVS: Releases/Zope/lib/python/AccessControl - SimpleObjectPolicies.py:1.10.2.1
Evan Simpson
evan@zope.com
Tue, 12 Mar 2002 14:36:23 -0500
Update of /cvs-repository/Releases/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv24237
Modified Files:
Tag: Zope-2_5-branch
SimpleObjectPolicies.py
Log Message:
Fix allow_type
=== Releases/Zope/lib/python/AccessControl/SimpleObjectPolicies.py 1.10 => 1.10.2.1 ===
if not (isinstance(allowed, IntType) or isinstance(allowed, DictType)):
raise ValueError, "The 'allowed' argument must be an int or dict."
- ContainerAssertions.update(Type, allowed)
+ ContainerAssertions[Type] = allowed