Commit 4ba64d54 authored by Tres Seaver's avatar Tres Seaver

- Harmonized ftest usage of publish_module.

parent 393f7201
...@@ -33,7 +33,8 @@ class Functional(sandbox.Sandboxed): ...@@ -33,7 +33,8 @@ class Functional(sandbox.Sandboxed):
__implements__ = (interfaces.IFunctional,) __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.''' '''Publishes the object at 'path' returning a response object.'''
from StringIO import StringIO from StringIO import StringIO
...@@ -77,7 +78,13 @@ class Functional(sandbox.Sandboxed): ...@@ -77,7 +78,13 @@ class Functional(sandbox.Sandboxed):
outstream = StringIO() outstream = StringIO()
response = Response(stdout=outstream, stderr=sys.stderr) 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 # Restore security manager
setSecurityManager(sm) setSecurityManager(sm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment