[Zope-Checkins] CVS: Zope2 - HelpSys.py:1.19.28.1
Matthew T. Kromer
matt@digicool.com
Mon, 21 May 2001 14:48:41 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/HelpSys
In directory korak.digicool.com:/tmp/cvs-serv3178
Modified Files:
Tag: ajung-dropin-registry
HelpSys.py
Log Message:
Break dependancy on catalog internal structure
--- Updated File HelpSys.py in package Zope2 --
--- HelpSys.py 2001/02/12 19:13:22 1.19
+++ HelpSys.py 2001/05/21 18:48:41 1.19.28.1
@@ -278,12 +278,11 @@
def __init__(self, id='Help', title=''):
self.id=id
self.title=title
- self.catalog=ZCatalog('catalog')
- c=self.catalog._catalog
+ c=self.catalog=ZCatalog('catalog')
# clear catalog
- for index in c.indexes.keys():
+ for index in c.indexes():
c.delIndex(index)
- for col in c.schema.keys():
+ for col in c.schema():
c.delColumn(col)
c.addIndex('SearchableText', 'TextIndex')
c.addIndex('categories', 'KeywordIndex')