1. Roger Haase
  2. moin-2.0

Commits

Roger Haase  committed 5aeeb1c

fix traceback in moin item-put due to lineno attr missing

  • Participants
  • Parent commits bc0f43f
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/script/maint/modify_item.py

View file
 
 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
 
     )
 
     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')