[Zope-Checkins] SVN: Zope/trunk/src/Testing/ZopeTestCase/functional.py - removed ZPublisher.Test.publish_module dependency

Yvo Schubbe y.2010 at wcm-solutions.de
Mon Jun 7 10:53:49 EDT 2010


Log message for revision 113238:
  - 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)

Changed:
  U   Zope/trunk/src/Testing/ZopeTestCase/functional.py

-=-
Modified: Zope/trunk/src/Testing/ZopeTestCase/functional.py
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/functional.py	2010-06-07 14:27:51 UTC (rev 113237)
+++ Zope/trunk/src/Testing/ZopeTestCase/functional.py	2010-06-07 14:53:48 UTC (rev 113238)
@@ -55,21 +55,19 @@
     implements(interfaces.IFunctional)
 
     @savestate
-    def publish(self, path, basic=None, env=None, extra=None,
-                request_method='GET', stdin=None, handle_errors=True):
+    def publish(self, path, basic=None, env=None, request_method='GET',
+                stdin=None, handle_errors=True):
         '''Publishes the object at 'path' returning a response object.'''
 
         from StringIO import StringIO
         from ZPublisher.Response import Response
-        from ZPublisher.Test import publish_module
+        from ZPublisher.Publish import publish_module
 
         # Commit the sandbox for good measure
         transaction.commit()
 
         if env is None:
             env = {}
-        if extra is None:
-            extra = {}
 
         request = self.app.REQUEST
 
@@ -98,7 +96,6 @@
                        response=response,
                        stdin=stdin,
                        environ=env,
-                       extra=extra,
                        debug=not handle_errors,
                       )
 



More information about the Zope-Checkins mailing list