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:
Timo Stollenwerk
2009-07-13 22:14:30 +00:00
parent 377f9ddbfd
commit 98204dc84a
2 changed files with 30 additions and 6 deletions
+4 -1
View File
@@ -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