Get this running again for the most part under Plone 4.0 - the main trick was probably to use the new CMFCatalogAware class. Removed collective.testcaselayer dependency, as that broke totally. There's some test failures left, but indexing works in general. Maybe the custom indexing event handlers aren't all required anymore. The title_or_id test failure looks like there's an infinite loop in the __parent__ pointers never reaching the actual content object. This change breaks Plone 3.x compatibility for the moment.
svn path=/plone.app.discussion/trunk/; revision=30629
This commit is contained in:
@@ -4,7 +4,7 @@ indexes with values based on the IComment interface.
|
||||
Also provide event handlers to actually catalog the comments.
|
||||
"""
|
||||
|
||||
from string import split, join
|
||||
from string import join
|
||||
|
||||
from DateTime import DateTime
|
||||
|
||||
@@ -15,7 +15,6 @@ from Products.ZCatalog.interfaces import IZCatalog
|
||||
from plone.app.discussion.interfaces import IConversation, IComment
|
||||
|
||||
from plone.indexer import indexer
|
||||
from plone.indexer.interfaces import IIndexer
|
||||
|
||||
MAX_DESCRIPTION=25
|
||||
|
||||
|
||||
Reference in New Issue
Block a user