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:
parent
82b2c9b29a
commit
f0c04d5b36
1 changed files with 1 additions and 1 deletions
|
@ -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='')
|
||||
|
|
Loading…
Add table
Reference in a new issue