[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - ZCatalog.py:1.116

Casey Duncan casey@zope.com
Wed, 14 Aug 2002 15:21:45 -0400


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

Modified Files:
	ZCatalog.py 
Log Message:
Fixed clearIndex to use new getIndex api
small whitespace cleanup (I know, why bother ;^)


=== Zope/lib/python/Products/ZCatalog/ZCatalog.py 1.115 => 1.116 ===
--- Zope/lib/python/Products/ZCatalog/ZCatalog.py:1.115	Wed Aug 14 15:10:14 2002
+++ Zope/lib/python/Products/ZCatalog/ZCatalog.py	Wed Aug 14 15:21:45 2002
@@ -850,8 +850,6 @@
     #
 
     def addIndex(self, name, type,extra=None):
-
-
         # Convert the type by finding an appropriate product which supports
         # this interface by that name.  Bleah
 
@@ -883,17 +881,14 @@
         else:
             index = base(name,self)
         
-
         self._catalog.addIndex(name,index)
 
 
     def delIndex(self, name ):
-
         self._catalog.delIndex(name)
 
     def clearIndex(self, name):
-
-        self._catalog.indexes[name].clear()
+        self._catalog.getIndex(name).clear()
 
 
     def addColumn(self, name, default_value=None):