provide principal.title if no person available

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3044 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2008-12-06 11:54:34 +00:00
parent 82b2c9b29a
commit f0c04d5b36

View file

@ -177,7 +177,7 @@ class TrackDetails(object):
obj = util.getObjectForUid(userName)
if obj is None:
try:
userTitle = self.authentication.getPrincipal(userName)
userTitle = self.authentication.getPrincipal(userName).title
except PrincipalLookupError:
userTitle = userName
return dict(object=None, title=userTitle, url='')