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:
David Glick
2011-08-19 18:54:44 +00:00
parent 6e157df3d3
commit 2b10fd06e2
2 changed files with 8 additions and 4 deletions
+5 -4
View File
@@ -234,10 +234,11 @@ def notify_content_object_moved(obj, event):
for brain in brains:
catalog.uncatalog_object(brain.getPath())
# Reindex comment at the new location
conversation = IConversation(obj)
for comment in conversation.getComments():
aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
catalog.reindexObject(aq_base(comment))
conversation = IConversation(obj, None)
if conversation is not None:
for comment in conversation.getComments():
aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
catalog.reindexObject(aq_base(comment))
def notify_user(obj, event):