fix the recursive migrate_replies function, so that it returns True only after all comments on a certain level have been migrated.
svn path=/plone.app.discussion/trunk/; revision=28054
This commit is contained in:
@@ -84,9 +84,12 @@ class View(BrowserView):
|
||||
talkback.deleteReply(reply.id)
|
||||
obj = aq_parent(talkback)
|
||||
obj.talkback = None
|
||||
log("remove %s" % reply.id)
|
||||
log("%sremove %s" % (indent, reply.id))
|
||||
self.total_comments_deleted += 1
|
||||
|
||||
# Return True when all comments on a certain level have been migrated.
|
||||
return True
|
||||
|
||||
log("Comment migration started.")
|
||||
|
||||
# Find content
|
||||
|
||||
Reference in New Issue
Block a user