diff MoinMoin/app.py @ 2570:89563f058bb2

rework auto-scroll edit textarea, support docbook, minor enhancements
author RogerHaase <haaserd@gmail.com>
date Sat, 08 Mar 2014 12:20:09 -0700
parents 791bdedb0c20
children ee6c2b013356 da84a2c42a92
line wrap: on
line diff
--- a/MoinMoin/app.py	Sat Mar 08 12:03:52 2014 -0700
+++ b/MoinMoin/app.py	Sat Mar 08 12:20:09 2014 -0700
@@ -255,6 +255,9 @@
         flaskg.current_lang = app.cfg.language_default
 
         setup_jinja_env()
+
+        # request.user_agent == '' if this is pytest
+        flaskg.add_lineno_attr = request.user_agent and flaskg.user.edit_on_doubleclick
     finally:
         flaskg.clock.stop('init')