[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py Use the name of the application in the layer name in order to distinguish WSGI layers.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Fri Dec 10 08:12:48 EST 2010
Log message for revision 118788:
Use the name of the application in the layer name in order to distinguish WSGI layers.
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-10 13:12:07 UTC (rev 118787)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py 2010-12-10 13:12:48 UTC (rev 118788)
@@ -31,9 +31,13 @@
class Layer(gocept.selenium.base.Layer):
- def __init__(self, application=None, *bases):
+ def __init__(self, application, *bases):
super(Layer, self).__init__(*bases)
self.application = application
+ # The name of the application class is used in order to help
+ # the testrunner distinguish between layers with different
+ # applications.
+ self.__name__ += '.' + self.application.__class__.__name__
def setup_wsgi_stack(self, app):
return app
More information about the checkins
mailing list