[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog/regressiontests - regressionCatalogTiming.py:1.2.16.1

Steve Alexander steve@cat-box.net
Fri, 5 Oct 2001 11:23:41 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZCatalog/regressiontests
In directory cvs.zope.org:/tmp/cvs-serv5745/regressiontests

Modified Files:
      Tag: stevea_zcatalog_api_cruft_cleanup-branch
	regressionCatalogTiming.py 
Log Message:
Tidied up ZCatalog.py API to make manage_delXXXX and related methods
singular in name, but take either a string or a sequence of strings
as an argument for names/ids/urls.
Also, updated relevant dtml files and regression tests.
The old API is kept as deprecated methods, which log a warning when used.



=== Zope/lib/python/Products/ZCatalog/regressiontests/regressionCatalogTiming.py 1.2 => 1.2.16.1 ===
         c = self.app.catalogtest.catalog
         for x in ('title', 'to', 'from', 'date', 'raw'):
-            try: c.manage_delIndexes([x])
+            try: c.manage_delIndex([x])
             except: pass
         c.manage_addIndex('title', 'TextIndex')
         c.manage_addIndex('to', 'TextIndex')