[Zope3-checkins] CVS: Zope3/src/zope/proxy/context - __init__.py:1.8.2.1

Steve Alexander steve@cat-box.net
Wed, 14 May 2003 03:36:11 -0400


Update of /cvs-repository/Zope3/src/zope/proxy/context
In directory cvs.zope.org:/tmp/cvs-serv6710/src/zope/proxy/context

Modified Files:
      Tag: stevea-decorators-branch
	__init__.py 
Log Message:
Added stubs to allow two pairs to work together on decorators.


=== Zope3/src/zope/proxy/context/__init__.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/proxy/context/__init__.py:1.8	Fri May  9 10:02:55 2003
+++ Zope3/src/zope/proxy/context/__init__.py	Wed May 14 03:36:10 2003
@@ -52,14 +52,11 @@
         # insert into proxies
         checker = getChecker(_ob)
         _ob = getObject(_ob)
-        _ob = Proxy(makeWrapper_hook(_ob, _parent, kw, checker), checker)
+        _ob = Proxy(Wrapper(_ob, _parent, **kw), checker)
     else:
-        _ob = makeWrapper_hook(_ob, _parent, kw)
+        _ob = Wrapper(_ob, _parent, **kw)
 
     return _ob
-
-def makeWrapper_hook(ob, parent, kw, checker=None):
-    return Wrapper(ob, parent, **kw)
 
 def getWrapperObject(_ob):
     """Remove a context wrapper around an object with data