[Zope-Checkins] CVS: Zope2 - ZCatalog.py:1.88.6.9
Matthew T. Kromer
matt@digicool.com
Mon, 21 May 2001 14:49:13 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak.digicool.com:/tmp/cvs-serv3198
Modified Files:
Tag: ajung-dropin-registry
ZCatalog.py
Log Message:
Add wrappers for addColumn and delColumn
--- Updated File ZCatalog.py in package Zope2 --
--- ZCatalog.py 2001/05/21 18:22:18 1.88.6.8
+++ ZCatalog.py 2001/05/21 18:49:13 1.88.6.9
@@ -257,19 +257,19 @@
self._catalog.replaceIndexes(indexes)
- self._catalog.addColumn('id')
+ self.addColumn('id')
self.addIndex('id', 'FieldIndex')
- self._catalog.addColumn('title')
+ self.addColumn('title')
self.addIndex('title', 'TextIndex')
- self._catalog.addColumn('meta_type')
+ self.addColumn('meta_type')
self.addIndex('meta_type', 'FieldIndex')
- self._catalog.addColumn('bobobase_modification_time')
+ self.addColumn('bobobase_modification_time')
self.addIndex('bobobase_modification_time', 'FieldIndex')
- self._catalog.addColumn('summary')
+ self.addColumn('summary')
self.addIndex('PrincipiaSearchSource', 'TextIndex')
self.addIndex('path','PathIndex')
@@ -775,8 +775,6 @@
products = ObjectManager.all_meta_types(self, interfaces=(
PluggableIndexInterface,))
- print "Products: %s" % products
-
p = None
for prod in products:
@@ -810,6 +808,12 @@
# Lame.....this needs to be fixed
self._indexes[name].clear()
+
+ def addColumn(self, name, default_value=None):
+ return self._catalog.addColumn(name, default_value)
+
+ def delColumn(self, name):
+ return self._catalog.delColumn(name)
Globals.default__class_init__(ZCatalog)