[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ Make layer name a little prettier
Wolfgang Schnerring
wosc at wosc.de
Sat Dec 4 03:58:16 EST 2010
Log message for revision 118696:
Make layer name a little prettier
Changed:
U gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/base.py
U gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ztk/testing.py
-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/base.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/base.py 2010-12-04 08:57:59 UTC (rev 118695)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/base.py 2010-12-04 08:58:15 UTC (rev 118696)
@@ -34,8 +34,9 @@
def __init__(self, *bases):
self.__bases__ = bases
- self.__name__ = '[%s].selenium' % (
- '/'.join('%s.%s' % (x.__module__, x.__name__) for x in bases))
+ if self.__bases__:
+ base = bases[0]
+ self.__name__ = '(%s.%s)' % (base.__module__, base.__name__)
def setUp(self):
self.selenium = selenium.selenium(
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ztk/testing.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ztk/testing.py 2010-12-04 08:57:59 UTC (rev 118695)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ztk/testing.py 2010-12-04 08:58:15 UTC (rev 118696)
@@ -19,7 +19,7 @@
zcml_layer = zope.app.testing.functional.ZCMLLayer(
pkg_resources.resource_filename(
'gocept.selenium.ztk.tests', 'ftesting.zcml'),
- __name__, __name__, allow_teardown=True)
+ __name__, 'zcml_layer', allow_teardown=True)
selenium_layer = gocept.selenium.ztk.Layer(zcml_layer)
More information about the checkins
mailing list