[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py Pass keyword arguments too.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Mon Dec 6 11:55:25 EST 2010


Log message for revision 118722:
  Pass keyword arguments too.

Changed:
  U   gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py

-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py	2010-12-06 16:20:18 UTC (rev 118721)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py	2010-12-06 16:55:25 UTC (rev 118722)
@@ -26,7 +26,7 @@
      # built for multiple inheritance; the wsgi.Layer-part of the family would
      # never be reached
 
-    def __init__(self, *args):
+    def __init__(self, *args, **kw):
         # since the request factory class is only a parameter default of
         # WSGIPublisherApplication and not easily accessible otherwise, we fake
         # it into creating a requestFactory instance, so we can read the class
@@ -34,7 +34,7 @@
         fake_db = object()
         gocept.selenium.wsgi.Layer.__init__(
             self, zope.app.wsgi.WSGIPublisherApplication(fake_db))
-        ZODBLayer.__init__(self, *args)
+        ZODBLayer.__init__(self, *args, **kw)
 
     def setUp(self):
         ZODBLayer.setUp(self)



More information about the checkins mailing list