diff MoinMoin/app.py @ 1992:d06e56e20b91

use more constants: ANON for anonymous
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 12 Feb 2013 20:11:39 +0100
parents bb2f526d961c
children 791bdedb0c20
line wrap: on
line diff
--- a/MoinMoin/app.py	Tue Feb 12 17:54:59 2013 +0100
+++ b/MoinMoin/app.py	Tue Feb 12 20:11:39 2013 +0100
@@ -28,6 +28,7 @@
 from MoinMoin import log
 logging = log.getLogger(__name__)
 
+from MoinMoin.constants.misc import ANON
 from MoinMoin.i18n import i18n_init
 from MoinMoin.i18n import _, L_, N_
 
@@ -223,7 +224,7 @@
 
     # if we still have no user obj, create a dummy:
     if not userobj:
-        userobj = user.User(name=u'anonymous', auth_method='invalid')
+        userobj = user.User(name=ANON, auth_method='invalid')
     # if we have a valid user we store it in the session
     if userobj.valid:
         session['user.itemid'] = userobj.itemid