Log message for revision 38609:
   - Harmonized ftest usage of publish_module.

Changed:
  U   
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py 
2005-09-25 08:44:20 UTC (rev 38608)
+++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py 
2005-09-25 08:45:18 UTC (rev 38609)
@@ -33,7 +33,8 @@
 
     __implements__ = (interfaces.IFunctional,)
 
-    def publish(self, path, basic=None, env=None, extra=None, 
request_method='GET', stdin=None):
+    def publish(self, path, basic=None, env=None, extra=None,
+                request_method='GET', stdin=None, handle_errors=True):
         '''Publishes the object at 'path' returning a response object.'''
 
         from StringIO import StringIO
@@ -77,7 +78,13 @@
         outstream = StringIO()
         response = Response(stdout=outstream, stderr=sys.stderr)
 
-        publish_module('Zope2', response=response, stdin=stdin, environ=env, 
extra=extra)
+        publish_module('Zope2',
+                       response=response,
+                       stdin=stdin,
+                       environ=env,
+                       extra=extra,
+                       debug=not handle_errors,
+                      )
 
         # Restore security manager
         setSecurityManager(sm)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to