[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/decorator.py
Updated to reflect fix to zope.proxies. Now non-data descriptors are
Jim Fulton
jim at zope.com
Sun Apr 2 12:59:24 EDT 2006
Log message for revision 66303:
Updated to reflect fix to zope.proxies. Now non-data descriptors are
overridden by proxied objects, so changed the descriptors to be data
descriptors.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/decorator.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/decorator.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/decorator.py 2006-04-02 16:59:21 UTC (rev 66302)
+++ Zope3/branches/jim-adapter/src/zope/app/decorator.py 2006-04-02 16:59:23 UTC (rev 66303)
@@ -80,6 +80,8 @@
cls = type(inst)
return ObjectSpecification(provided, cls)
+ def __set__(self, inst, value):
+ raise TypeError("Can't set __providedBy__ on a decorated object")
class DecoratedSecurityCheckerDescriptor(object):
"""Descriptor for a Decorator that provides a decorated security checker.
@@ -236,6 +238,8 @@
else:
return CombinedChecker(wrapper_checker, checker)
+ def __set__(self, inst, value):
+ raise TypeError("Can't set __Security_checker__ on a decorated object")
class Decorator(ProxyBase):
"""Decorator base class"""
More information about the Zope3-Checkins
mailing list