Commit 4064b327 authored by Casey Duncan's avatar Casey Duncan

Fixed clearIndex to use new getIndex api

small whitespace cleanup (I know, why bother ;^)
parent e28101d5
...@@ -850,8 +850,6 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -850,8 +850,6 @@ class ZCatalog(Folder, Persistent, Implicit):
# #
def addIndex(self, name, type,extra=None): def addIndex(self, name, type,extra=None):
# Convert the type by finding an appropriate product which supports # Convert the type by finding an appropriate product which supports
# this interface by that name. Bleah # this interface by that name. Bleah
...@@ -883,17 +881,14 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -883,17 +881,14 @@ class ZCatalog(Folder, Persistent, Implicit):
else: else:
index = base(name,self) index = base(name,self)
self._catalog.addIndex(name,index) self._catalog.addIndex(name,index)
def delIndex(self, name ): def delIndex(self, name ):
self._catalog.delIndex(name) self._catalog.delIndex(name)
def clearIndex(self, name): def clearIndex(self, name):
self._catalog.getIndex(name).clear()
self._catalog.indexes[name].clear()
def addColumn(self, name, default_value=None): def addColumn(self, name, default_value=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment