[ZCM] [ZC] 276/ 1 Request "AccessControl.SimpleObjectPolicies.allow_type is broken"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Fri, 08 Mar 2002 10:21:53 -0500
Issue #276 Update (Request) "AccessControl.SimpleObjectPolicies.allow_type is broken"
Status Pending, Zope/bug+solution medium
To followup, visit:
http://collector.zope.org/Zope/276
==============================================================
= Request - Entry #1 by Anonymous User on Mar 8, 2002 10:21 am
In File:
> "lib/python/AccessControl/SimpleObjectPolicies.py"
> ($Id: SimpleObjectPolicies.py,v 1.10 2002/01/11 17:14:27 evan Exp $)
the function 'allow_type' does an 'update' on the dictionary 'ContainerAssertions' with a tuple, raising a TypeError. See line 60:
> ContainerAssertions.update(Type, allowed)
Solution: Change line 60 to e.g.:
> ContainerAssertions[Type] = allowed
==============================================================