Commit e653dfdb authored by 's avatar

- removed ZPublisher.Test.publish_module dependency

the 'extra' argument of the publish method is no longer supported
(I hope nobody did use it - let's see if someone complains about this BBB foul)
parent 41a94ac3
...@@ -55,21 +55,19 @@ class Functional(sandbox.Sandboxed): ...@@ -55,21 +55,19 @@ class Functional(sandbox.Sandboxed):
implements(interfaces.IFunctional) implements(interfaces.IFunctional)
@savestate @savestate
def publish(self, path, basic=None, env=None, extra=None, def publish(self, path, basic=None, env=None, request_method='GET',
request_method='GET', stdin=None, handle_errors=True): 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
from ZPublisher.Response import Response from ZPublisher.Response import Response
from ZPublisher.Test import publish_module from ZPublisher.Publish import publish_module
# Commit the sandbox for good measure # Commit the sandbox for good measure
transaction.commit() transaction.commit()
if env is None: if env is None:
env = {} env = {}
if extra is None:
extra = {}
request = self.app.REQUEST request = self.app.REQUEST
...@@ -98,7 +96,6 @@ class Functional(sandbox.Sandboxed): ...@@ -98,7 +96,6 @@ class Functional(sandbox.Sandboxed):
response=response, response=response,
stdin=stdin, stdin=stdin,
environ=env, environ=env,
extra=extra,
debug=not handle_errors, debug=not handle_errors,
) )
......
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