[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - IWrapper.py:1.4
Jim Fulton
jim@zope.com
Mon, 8 Jul 2002 13:02:53 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv12775
Modified Files:
IWrapper.py
Log Message:
Fixed silly specification for getinnercontext. If getcontext returns
None for an unwrapped object, then so should getinnercontext.
=== Zope3/lib/python/Zope/ContextWrapper/IWrapper.py 1.3 => 1.4 ===
Return the context object from the innermost wrapper in a chain with
obj at the head. If the innermost wrapper has not context object,
- return None. If obj is not a wrapper object, just return obj.
+ return None. If obj is not a wrapper, return None.
"""
def getcontext(obj):
"""