special label for anonymous users

git-svn-id: svn://localhost/lasso-conform/trunk@25 2a3a78c3-912c-0410-af21-e1fb2d1df599
This commit is contained in:
fpeters 2006-11-27 19:43:56 +00:00
parent e5c5cff135
commit 1dc3b14a82
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ class User(StorableObject):
self.roles = []
def get_display_name(self):
if self.anonymous:
return _('Anonymous User')
if self.name:
return self.name
if self.email: