[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - IWrapper.py:1.1.2.3

Jim Fulton jim@zope.com
Wed, 20 Feb 2002 13:25:18 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv24358

Modified Files:
      Tag: Zope-3x-branch
	IWrapper.py 
Log Message:
Added documentation of keyword arguments to wrapper constructor.



=== Zope3/lib/python/Zope/ContextWrapper/IWrapper.py 1.1.2.2 => 1.1.2.3 ===
 class IWrapperFuncs(Interface.Base):
     """ Interface implemented by callables in 'wrapper' module """
-    def Wrapper(object, context=None):
+    def Wrapper(object, context=None, **data):
         """
         Create and return a new context wrapper for object. If context is given
         and not None, context will be the context object. Wrapper can be
         subclassed.
+
+        Wrapper data may be passed as keyword arguments. The data are
+        added to the context dictionary.
         """
+        
     def getobject(obj):
         """
         Return the wrapped object. If obj is not a wrapper object, return obj.