changeset 2608:cf602d5a0284

fix #432 moin maint-reduce-revisions traceback
author RogerHaase <haaserd@gmail.com>
date Thu, 29 May 2014 20:50:49 -0700
parents 93789e187aae
children e2273e44dabb
files MoinMoin/script/maint/reduce_revisions.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/reduce_revisions.py	Wed May 28 14:22:24 2014 -0700
+++ b/MoinMoin/script/maint/reduce_revisions.py	Thu May 29 20:50:49 2014 -0700
@@ -18,6 +18,8 @@
 
 from MoinMoin.constants.keys import NAME, NAME_EXACT, REVID
 
+from MoinMoin.app import before_wiki
+
 
 class Reduce_Revisions(Command):
     description = "This command can be used to remove all revisions but the last one from all selected items."
@@ -27,6 +29,7 @@
     )
 
     def run(self, query):
+        before_wiki()
         if query:
             qp = app.storage.query_parser([NAME_EXACT, ])
             q = qp.parse(query_text)