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

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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') ]
 
 

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.