[Zope3-checkins] SVN: Zope3/trunk/src/zope/location/location.py do
not use decorator base class in LocationProxy,
but set descriptors manually,
because the apidoc introspector breaks otherwise for some reason
unknown to me.
Wolfgang Schnerring
wosc at wosc.de
Fri Sep 22 03:52:16 EDT 2006
Log message for revision 70330:
do not use decorator base class in LocationProxy, but set descriptors manually, because the apidoc introspector breaks otherwise for some reason unknown to me.
Changed:
U Zope3/trunk/src/zope/location/location.py
-=-
Modified: Zope3/trunk/src/zope/location/location.py
===================================================================
--- Zope3/trunk/src/zope/location/location.py 2006-09-22 07:50:09 UTC (rev 70329)
+++ Zope3/trunk/src/zope/location/location.py 2006-09-22 07:52:15 UTC (rev 70330)
@@ -20,7 +20,8 @@
import zope.interface
from zope.location.interfaces import ILocation
from zope.proxy import ProxyBase, getProxiedObject, non_overridable
-from zope.security.decorator import DecoratorBase
+from zope.proxy.decorator import DecoratorSpecificationDescriptor
+from zope.security.decorator import DecoratedSecurityCheckerDescriptor
class Location(object):
"""Stupid mix-in that defines `__parent__` and `__name__` attributes
@@ -119,7 +120,7 @@
return self.funcs[1](cls)
return self.funcs[0](inst)
-class LocationProxy(DecoratorBase):
+class LocationProxy(ProxyBase):
__doc__ = """Location-object proxy
This is a non-picklable proxy that can be put around objects that
@@ -171,3 +172,8 @@
)
__reduce_ex__ = __reduce__
+
+ __providedBy__ = DecoratorSpecificationDescriptor()
+
+ __Security_checker__ = DecoratedSecurityCheckerDescriptor()
+
More information about the Zope3-Checkins
mailing list