[Zope3-checkins] CVS: Zope3/src/zope/app/services - configuration.py:1.21
Steve Alexander
steve@cat-box.net
Tue, 8 Apr 2003 08:22:08 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv11790/src/zope/app/services
Modified Files:
configuration.py
Log Message:
Merge from branch.
ContextWrappers that rebind the 'self' of certain descriptors is now
implemented in C rather than in Python.
This checkin also fixes a couple of loss-of-context bugs when using
the __call__ method of views.
You'll need to rebuild your C extensions.
You *won't* need to toss your Data.fs ;-)
=== Zope3/src/zope/app/services/configuration.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/services/configuration.py:1.20 Mon Mar 24 06:09:39 2003
+++ Zope3/src/zope/app/services/configuration.py Tue Apr 8 08:21:38 2003
@@ -47,14 +47,12 @@
from zope.component import getAdapter
from zope.component import getService, queryService, getServiceManager
from zope.proxy.context import ContextMethod, ContextWrapper
+from zope.proxy.context import ContextDescriptor
from zope.proxy.introspection import removeAllProxies
from zope.security.checker import InterfaceChecker
from zope.security.proxy import Proxy
-class ConfigurationStatusProperty:
-
- __Zope_ContextWrapper_contextful_get__ = True
- __Zope_ContextWrapper_contextful_set__ = True
+class ConfigurationStatusProperty(ContextDescriptor):
def __init__(self, service):
self.service = service