changeset 2675:5aeeb1cac5b9

fix traceback in moin item-put due to lineno attr missing
author RogerHaase <haaserd@gmail.com>
date Mon, 07 Jul 2014 07:08:59 -0700
parents bc0f43fecbc7
children 27cbb9d8f08c
files MoinMoin/script/maint/modify_item.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/modify_item.py	Thu Jul 03 22:04:50 2014 +0200
+++ b/MoinMoin/script/maint/modify_item.py	Mon Jul 07 07:08:59 2014 -0700
@@ -10,6 +10,7 @@
 
 from flask import current_app as app
 from flask.ext.script import Command, Option
+from flask import g as flaskg
 
 from MoinMoin.constants.keys import CURRENT, ITEMID, REVID, DATAID, SIZE, HASH_ALGORITHM
 
@@ -50,6 +51,7 @@
     )
 
     def run(self, meta_file, data_file, overwrite):
+        flaskg.add_lineno_attr = False
         with open(meta_file, 'rb') as mf:
             meta = mf.read()
         meta = meta.decode('utf-8')