[Checkins] SVN: Zelenium/trunk/ Made Zelenium Zuite objects
functional in the presence of 'five:traverse'.
Tres Seaver
tseaver at palladion.com
Thu Aug 10 21:59:12 EDT 2006
Log message for revision 69398:
Made Zelenium Zuite objects functional in the presence of 'five:traverse'.
The fix, courtesy of Rob Miller, makes 'index_html' the explicit default view.
Changed:
U Zelenium/trunk/CHANGES.txt
U Zelenium/trunk/__init__.py
A Zelenium/trunk/configure.zcml
A Zelenium/trunk/interfaces.py
U Zelenium/trunk/zuite.py
-=-
Modified: Zelenium/trunk/CHANGES.txt
===================================================================
--- Zelenium/trunk/CHANGES.txt 2006-08-10 17:48:32 UTC (rev 69397)
+++ Zelenium/trunk/CHANGES.txt 2006-08-11 01:59:11 UTC (rev 69398)
@@ -2,12 +2,18 @@
After Zelenium 0.8
+ - Applied a fix from Rob Miller to make Zelenium Zuite objects functional
+ in the presence of 'five:traverse', making 'index_html' the explicit
+ default view.
+
- Corrected the documentation in the README for capturing results of a test
run ('auto=1' -> 'auto=true', in line with the Selenium documentation).
Thanks to Yoshinori Okuji for pointing this out.
Zelenium 0.8 (2006/05/16)
+ - SVN tag: svn+ssh://svn.zope.org/repos/main/Zelenium/tags/0.8
+
- Fixed unit tests by wrapping filesystem objects that are rendered
during ZIP file creation - code in OFS.Image wants to acquire
REQUEST and use RESPONSE.
Modified: Zelenium/trunk/__init__.py
===================================================================
--- Zelenium/trunk/__init__.py 2006-08-10 17:48:32 UTC (rev 69397)
+++ Zelenium/trunk/__init__.py 2006-08-11 01:59:11 UTC (rev 69398)
@@ -1,6 +1,7 @@
""" Zelenium product initialization
This product uses the Selenium javascript to run browser-driven tests.
+
$Id$
"""
Added: Zelenium/trunk/configure.zcml
===================================================================
--- Zelenium/trunk/configure.zcml 2006-08-10 17:48:32 UTC (rev 69397)
+++ Zelenium/trunk/configure.zcml 2006-08-11 01:59:11 UTC (rev 69398)
@@ -0,0 +1,9 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser">
+
+ <browser:defaultView
+ for="Products.Zelenium.interfaces.IZuite"
+ name="index_html"
+ />
+
+</configure>
Added: Zelenium/trunk/interfaces.py
===================================================================
--- Zelenium/trunk/interfaces.py 2006-08-10 17:48:32 UTC (rev 69397)
+++ Zelenium/trunk/interfaces.py 2006-08-11 01:59:11 UTC (rev 69398)
@@ -0,0 +1,9 @@
+""" Zelenium interfaces
+
+$Id$
+"""
+from zope.interface import Interface
+
+class IZuite(Interface):
+ """ Marker interface for IZuite objects.
+ """
Property changes on: Zelenium/trunk/interfaces.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: Zelenium/trunk/zuite.py
===================================================================
--- Zelenium/trunk/zuite.py 2006-08-10 17:48:32 UTC (rev 69397)
+++ Zelenium/trunk/zuite.py 2006-08-11 01:59:11 UTC (rev 69398)
@@ -12,6 +12,8 @@
import zipfile
import StringIO
+from zope.interface import implements
+
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.special_dtml import DTMLFile
from App.ImageFile import ImageFile
@@ -25,6 +27,7 @@
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
+from interfaces import IZuite
from permissions import ManageSeleniumTestCases
from permissions import View
@@ -114,6 +117,8 @@
)
)
+ implements(IZuite)
+
test_case_metatypes = ( 'File'
, 'Page Template'
)
More information about the Checkins
mailing list