[Zope-CVS] CVS: Products/Zelenium - CHANGES.txt:1.12 zuite.py:1.7

Tres Seaver tseaver at zope.com
Wed Apr 27 21:18:35 EDT 2005


Update of /cvs-repository/Products/Zelenium
In directory cvs.zope.org:/tmp/cvs-serv21878

Modified Files:
	CHANGES.txt zuite.py 
Log Message:


  - Allow indiviual zuites to override the list of metatypes which
    can be test cases, via a new 'testcase_metatypes' property.


=== Products/Zelenium/CHANGES.txt 1.11 => 1.12 ===
--- Products/Zelenium/CHANGES.txt:1.11	Wed Apr 27 21:09:09 2005
+++ Products/Zelenium/CHANGES.txt	Wed Apr 27 21:18:35 2005
@@ -2,6 +2,9 @@
 
   After Zelenium-0.3.1
  
+    - Allow indiviual zuites to override the list of metatypes which
+      can be test cases, via a new 'testcase_metatypes' property.
+
     - Force Zuite objects to show order support, even in the presence of
       ExternalEditor, whose monkey patching seems to trip it up.  Surface
       the EE icon, if the product is available


=== Products/Zelenium/zuite.py 1.6 => 1.7 ===
--- Products/Zelenium/zuite.py:1.6	Wed Apr 27 21:09:09 2005
+++ Products/Zelenium/zuite.py	Wed Apr 27 21:18:35 2005
@@ -185,6 +185,16 @@
                        )
                      )
 
+    test_case_metatypes = ( 'File'
+                          , 'Page Template'
+                          )
+
+    _properties = ( { 'id' : 'test_case_metatypes'
+                    , 'type' : 'lines'
+                    , 'mode' : 'w'
+                    },
+                  )
+
     security = ClassSecurityInfo()
     security.declareObjectProtected( View )
 
@@ -203,7 +213,7 @@
         """ Return a list of our contents which qualify as test cases.
         """
         return [ { 'id' : x[ 0 ], 'title' : x[ 1 ].title_or_id() }
-                 for x in self.objectItems( [ 'File', 'Page Template' ] )
+                 for x in self.objectItems( self.test_case_metatypes )
                       if x[ 0 ].startswith('test') ]
 
 



More information about the Zope-CVS mailing list