count old comments only during migration. show error log when comments could not be migrated.
svn path=/plone.app.discussion/trunk/; revision=32767
This commit is contained in:
parent
275cb885ea
commit
e0cc673683
@ -145,7 +145,11 @@ class View(BrowserView):
|
|||||||
log("\n")
|
log("\n")
|
||||||
|
|
||||||
log("%s of %s comments migrated."
|
log("%s of %s comments migrated."
|
||||||
% (self.total_comments_migrated, count_discussion_items))
|
% (self.total_comments_migrated, count_comments_old))
|
||||||
|
|
||||||
|
if self.total_comments_migrated != count_comments_old:
|
||||||
|
log("%s comments could not be migrated." % (count_comments_old - self.total_comments_migrated))
|
||||||
|
log("Please make sure your portal catalog is up-to-date.")
|
||||||
|
|
||||||
if self.request.has_key("dry_run"):
|
if self.request.has_key("dry_run"):
|
||||||
transaction.abort()
|
transaction.abort()
|
||||||
|
Loading…
Reference in New Issue
Block a user