Commit Graph

18 Commits

Author SHA1 Message Date
Patrick Gerken
94e73b43a7 Catch TypeError in indexers if content can not be adapted
Currently plone.app.discussion provides indexers
for IContentish. In these it tries to adapt
the content object to IDiscussion. But an IDiscussion Factory is only
provided for IAnnotatable.
The Criteria are IContentish but not IAnnotatable.
Indexing them fails

svn path=/plone.app.discussion/trunk/; revision=38182
2010-07-21 23:36:16 +00:00
Timo Stollenwerk
1ea36d7d82 Conversation indexers won't work on old discussion items. Fix tests.
svn path=/plone.app.discussion/trunk/; revision=30658
2009-10-17 08:28:50 +00:00
Timo Stollenwerk
e5f1a70de6 Make unit tests pass with Plone 3.3 again. Migration tests still failing.
svn path=/plone.app.discussion/trunk/; revision=30633
2009-10-16 12:11:58 +00:00
Hanno Schlichting
71ed707794 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
2009-10-16 00:42:08 +00:00
Timo Stollenwerk
a946fb54fa indexes for IComment added to override the IConversation indexes.
svn path=/plone.app.discussion/trunk/; revision=27838
2009-07-06 16:56:09 +00:00
Timo Stollenwerk
072f903c3a in_response_to metadata added.
svn path=/plone.app.discussion/trunk/; revision=27789
2009-07-03 08:03:09 +00:00
Timo Stollenwerk
47fd22f02e don't convert commentators to a set before converting it to a tuple, since the values are unique.
svn path=/plone.app.discussion/trunk/; revision=27785
2009-07-03 05:45:47 +00:00
Timo Stollenwerk
41010fb32a fix for "TypeError: can't pickle OIBTreeItems objects".
svn path=/plone.app.discussion/trunk/; revision=27778
2009-07-02 17:50:20 +00:00
Timo Stollenwerk
6647439971 indexers for commentators, number of comments, and latest comment added.
svn path=/plone.app.discussion/trunk/; revision=27766
2009-07-01 20:57:55 +00:00
Timo Stollenwerk
9e94afc072 fix description index for short comments.
svn path=/plone.app.discussion/trunk/; revision=27764
2009-07-01 10:01:37 +00:00
Timo Stollenwerk
a6a64bd3d6 rename all indexes from comment_XXX to XXX. clean up indexes test.
svn path=/plone.app.discussion/trunk/; revision=27259
2009-06-01 23:45:49 +00:00
Timo Stollenwerk
dc948da00b creator index added.
svn path=/plone.app.discussion/trunk/; revision=27258
2009-06-01 23:29:09 +00:00
Timo Stollenwerk
04bed35357 Indexes for created and modified added.
svn path=/plone.app.discussion/trunk/; revision=27257
2009-06-01 23:17:13 +00:00
Timo Stollenwerk
69334f6000 The comment_description index now returns the first 25 words of a comment.
svn path=/plone.app.discussion/trunk/; revision=27252
2009-06-01 09:59:07 +00:00
Timo Stollenwerk
d3ba4f58db Description index added.
svn path=/plone.app.discussion/trunk/; revision=27251
2009-05-31 19:07:35 +00:00
Timo Stollenwerk
ca7752714b remove comment_text index.
svn path=/plone.app.discussion/trunk/; revision=27249
2009-05-31 18:14:42 +00:00
Timo Stollenwerk
5f8acfd805 comment_title, comment_text, and comment_searchable_text indexes added.
svn path=/plone.app.discussion/trunk/; revision=27247
2009-05-31 17:55:46 +00:00
Martin Aspeli
6381b14763 check in some skeletal code + notes, nothing concrete or working yet
svn path=/plone.app.discussion/trunk/; revision=26892
2009-05-11 16:52:16 +00:00