[Zope-Checkins] CVS: Zope2 - ZCatalogIndexes.py:1.1.2.3
andreas@digicool.com
andreas@digicool.com
Wed, 9 May 2001 14:55:25 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak:/tmp/cvs-serv29300
Modified Files:
Tag: ajung-dropin-registry
ZCatalogIndexes.py
Log Message:
savepoint
--- Updated File ZCatalogIndexes.py in package Zope2 --
--- ZCatalogIndexes.py 2001/05/09 18:05:17 1.1.2.2
+++ ZCatalogIndexes.py 2001/05/09 18:55:24 1.1.2.3
@@ -232,6 +232,16 @@
self[name] = index
+
+ def delIndex(self, name ):
+ print "del index %s" % (name)
+
+
+ # Lame.....this needs to be fixed
+ del self._indexes[name]
+
+
+
#
# Object Manager methods
#
@@ -272,6 +282,21 @@
self.addIndex(self, id, type)
if REQUEST is not None:
return self.manage_main(self, REQUEST)
+
+
+ def manage_deleteIndex(self, ids, REQUEST=None):
+ """ removed indexes from ZCatalog """
+
+ print ids
+
+ for id in ids:
+ print "manage_deleteIndex: self is %s" % self
+
+ self.delIndex(id)
+
+ if REQUEST is not None:
+ return self.manage_main(self, REQUEST)
+
#
# traversal