Skip to content

Commit

Permalink
Fixed clearIndex to use new getIndex api
Browse files Browse the repository at this point in the history
small whitespace cleanup (I know, why bother ;^)
  • Loading branch information
caseman committed Aug 14, 2002
1 parent 6e46a53 commit ab418c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ZCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,6 @@ def manage_convertIndex(self, ids, REQUEST=None, RESPONSE=None, URL1=None):
#

def addIndex(self, name, type,extra=None):


# Convert the type by finding an appropriate product which supports
# this interface by that name. Bleah

Expand Down Expand Up @@ -883,17 +881,14 @@ def addIndex(self, name, type,extra=None):
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):
Expand Down

0 comments on commit ab418c1

Please sign in to comment.