changeset 2609:e2273e44dabb

fix #431 moin index-build -i fails on missing add_lineno_attr
author RogerHaase <haaserd@gmail.com>
date Mon, 02 Jun 2014 09:16:02 -0700
parents cf602d5a0284
children 3334da53527e
files MoinMoin/script/maint/index.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/index.py	Thu May 29 20:50:49 2014 -0700
+++ b/MoinMoin/script/maint/index.py	Mon Jun 02 09:16:02 2014 -0700
@@ -8,6 +8,7 @@
 
 from flask import current_app as app
 from flask.ext.script import Command, Option
+from flask import g as flaskg
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
@@ -52,6 +53,7 @@
     ]
 
     def run(self, tmp, procs, limitmb):
+        flaskg.add_lineno_attr = False  # no need to add lineno attributes while building indexes
         app.storage.rebuild(tmp=tmp, procs=procs, limitmb=limitmb)