comparison MoinMoin/theme/__init__.py @ 338:bf754e0d6472

don't crash in themecode if username is None imported from: moin--main--1.5--patch-342
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 20 Dec 2005 21:43:32 +0000
parents 4e5e4fc9f7fa
children f25101c236bb
comparison
equal deleted inserted replaced
337:db49fa6d12a6 338:bf754e0d6472
206 preferencesPage = wikiutil.getSysPage(request, 'UserPreferences') 206 preferencesPage = wikiutil.getSysPage(request, 'UserPreferences')
207 207
208 userlinks = [] 208 userlinks = []
209 # Add username/homepage link for registered users. We don't care 209 # Add username/homepage link for registered users. We don't care
210 # if it exists, the user can create it. 210 # if it exists, the user can create it.
211 if request.user.valid: 211 if request.user.valid and request.user.name:
212 interwiki = wikiutil.getInterwikiHomePage(request) 212 interwiki = wikiutil.getInterwikiHomePage(request)
213 name = request.user.name 213 name = request.user.name
214 aliasname = request.user.aliasname 214 aliasname = request.user.aliasname
215 if not aliasname: 215 if not aliasname:
216 aliasname = name 216 aliasname = name