Commit 568cf22a authored by Hanno Schlichting's avatar Hanno Schlichting

Revert c81408 HelpSys changes, it didn't make much of a difference. Making the...

Revert c81408 HelpSys changes, it didn't make much of a difference. Making the whole help system optional would be a better approach.
parent 54e3b8ee
...@@ -9,9 +9,6 @@ Zope Changes ...@@ -9,9 +9,6 @@ Zope Changes
Restructuring Restructuring
- Made Helpsys.HelpSys internal ZCatalog creation lazy, so it isn't
created unless first accessed.
- Turned deprecation warnings for manage_afterAdd, manage_beforeDelete - Turned deprecation warnings for manage_afterAdd, manage_beforeDelete
and manage_afterClone methods into discouraged warnings. These methods and manage_afterClone methods into discouraged warnings. These methods
will not be removed in Zope 2.11, but stay for the foreseeable future. will not be removed in Zope 2.11, but stay for the foreseeable future.
......
...@@ -219,26 +219,20 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent): ...@@ -219,26 +219,20 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
def __init__(self, id='Help', title=''): def __init__(self, id='Help', title=''):
self.id=id self.id=id
self.title=title self.title=title
self._catalog = None c=self.catalog=ZCatalog('catalog')
# clear catalog
@property for index in c.indexes():
def catalog(self): c.delIndex(index)
if self._catalog is None: for col in c.schema():
c=self._catalog=ZCatalog('catalog') c.delColumn(col)
# clear catalog c.addIndex('SearchableText', 'TextIndex')
for index in c.indexes(): c.addIndex('categories', 'KeywordIndex')
c.delIndex(index) c.addIndex('permissions', 'KeywordIndex')
for col in c.schema(): c.addColumn('categories')
c.delColumn(col) c.addColumn('permissions')
c.addIndex('SearchableText', 'TextIndex') c.addColumn('title_or_id')
c.addIndex('categories', 'KeywordIndex') c.addColumn('url')
c.addIndex('permissions', 'KeywordIndex') c.addColumn('id')
c.addColumn('categories')
c.addColumn('permissions')
c.addColumn('title_or_id')
c.addColumn('url')
c.addColumn('id')
return self._catalog
security.declareProtected(add_documents_images_and_files, 'addTopicForm') security.declareProtected(add_documents_images_and_files, 'addTopicForm')
addTopicForm=DTMLFile('dtml/addTopic', globals()) addTopicForm=DTMLFile('dtml/addTopic', globals())
......
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