[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py Have wsgi.Layer preserve the __init__(*bases) gesture

Wolfgang Schnerring wosc at wosc.de
Sat Dec 4 04:29:00 EST 2010


Log message for revision 118700:
  Have wsgi.Layer preserve the __init__(*bases) gesture
  

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

-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py	2010-12-04 09:22:59 UTC (rev 118699)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py	2010-12-04 09:29:00 UTC (rev 118700)
@@ -31,7 +31,9 @@
 
 class Layer(gocept.selenium.base.Layer):
 
-    application = None
+    def __init__(self, application=None, *bases):
+        super(Layer, self).__init__(*bases)
+        self.application = application
 
     def setup_wsgi_stack(self, app):
         return app



More information about the checkins mailing list