[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins]
From:       Tres Seaver <tseaver () palladion ! com>
Date:       2005-09-25 8:45:19
Message-ID: 20050925084519.5B10320341B () mail ! zope ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic