[Zope3-checkins]
SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/browser.py
Added backward compatibility for passing an outstream.
Jim Fulton
jim at zope.com
Fri Sep 2 17:06:46 EDT 2005
Log message for revision 38262:
Added backward compatibility for passing an outstream.
Changed:
U Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/browser.py
-=-
Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/browser.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/browser.py 2005-09-02 21:06:44 UTC (rev 38261)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/browser.py 2005-09-02 21:06:46 UTC (rev 38262)
@@ -599,7 +599,7 @@
"""
def __init__(self, body_instream=None, environ=None, form=None,
- skin=None,
+ skin=None, bbb=None,
**kw):
_testEnv = {
@@ -610,7 +610,16 @@
}
if environ:
- _testEnv.update(environ)
+ try:
+ _testEnv.update(environ)
+ except AttributeError:
+ import warnings
+ warnings.warn("Can't pass output streams to requests anymore",
+ DeprecationWarning,
+ 2)
+ environ, form, skin = form, skin, bbb
+ _testEnv.update(environ)
+
if kw:
_testEnv.update(kw)
if body_instream is None:
More information about the Zope3-Checkins
mailing list