fix failing test in CMFPlone. some things are contentish but not adaptable to IConversation (such as collection criteria)
svn path=/plone.app.discussion/trunk/; revision=51682
This commit is contained in:
parent
6e157df3d3
commit
2b10fd06e2
@ -4,6 +4,9 @@ Changelog
|
|||||||
2.1.0 (unreleased)
|
2.1.0 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- Avoid error when moving objects that are contentish but not annotatable.
|
||||||
|
[davisagli]
|
||||||
|
|
||||||
- New feature: Markdown syntax added to possible comment text transforms.
|
- New feature: Markdown syntax added to possible comment text transforms.
|
||||||
[timo]
|
[timo]
|
||||||
|
|
||||||
|
@ -234,10 +234,11 @@ def notify_content_object_moved(obj, event):
|
|||||||
for brain in brains:
|
for brain in brains:
|
||||||
catalog.uncatalog_object(brain.getPath())
|
catalog.uncatalog_object(brain.getPath())
|
||||||
# Reindex comment at the new location
|
# Reindex comment at the new location
|
||||||
conversation = IConversation(obj)
|
conversation = IConversation(obj, None)
|
||||||
for comment in conversation.getComments():
|
if conversation is not None:
|
||||||
aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
|
for comment in conversation.getComments():
|
||||||
catalog.reindexObject(aq_base(comment))
|
aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
|
||||||
|
catalog.reindexObject(aq_base(comment))
|
||||||
|
|
||||||
|
|
||||||
def notify_user(obj, event):
|
def notify_user(obj, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user