Commits

Sergey Astanin committed eda48c0

display user.nickname() as suggested by Google instead of user.email(), see http://code.google.com/appengine/docs/users/userclass.html

Comments (0)

Files changed (1)

 		user=users.get_current_user()
 		data['title']=site.title
 		data['menu']=MainPage.get_menu()
-		data['username']=user
 		if user:
+			data['username']=user.nickname()
 			data['logout_url']=cgi.escape(users.create_logout_url("/"))
 		else:
+			data['username']=None
 			data['login_url']=cgi.escape(users.create_login_url("/"))
 		if users.is_current_user_admin():
 			data['is_editor']=True