[Zope3-checkins] CVS: Zope3/src/zope/app - context.py:1.8
Steve Alexander
steve@cat-box.net
Tue, 3 Jun 2003 10:20:31 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv28097/src/zope/app
Modified Files:
context.py
Log Message:
improved formatting.
=== Zope3/src/zope/app/context.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/context.py:1.7 Mon Jun 2 15:41:14 2003
+++ Zope3/src/zope/app/context.py Tue Jun 3 10:20:31 2003
@@ -125,14 +125,13 @@
def ContextWrapper(_ob, _parent, **kw):
-
if type(_ob) in BasicTypes:
# Don't wrap basic objects
return _ob
wrapper = queryProxy(_ob, Wrapper)
if wrapper is not None: # using kw as marker
-
+
if _parent is getcontext(wrapper):
# This would be a redundant wrapper. We'll just use the
# one we've got.
@@ -141,8 +140,6 @@
if kw:
getdictcreate(wrapper).update(kw)
return _ob
-
-
if type(_ob) is Proxy:
# insert into proxies
@@ -150,7 +147,6 @@
_ob = getProxiedObject(_ob)
else:
checker = None
-
if wrapper is not None:
# we were already wrapped, use the same class