notification: minor fixes

This commit is contained in:
Helmut Merz 2015-10-31 10:56:09 +01:00
parent a2dca10e15
commit 5c90a19859
2 changed files with 3 additions and 1 deletions

View file

@ -106,7 +106,7 @@ class PortletConfigurator(ViewConfigurator):
notif = self.view.globalOptions.organize.showNotifications
if not notif:
return []
if not Notifications(self.person).listTracks(unreadOnly=False):
if not list(Notifications(self.person).listTracks(unreadOnly=False)):
return []
if isinstance(notif, list):
notifPage = notif[0]

View file

@ -52,6 +52,8 @@ class NotificationsListing(ConceptView):
return Notifications(self.person)
def getNotifications(self, unreadOnly=True):
if self.person is None:
return []
tracks = self.notifications.listTracks(unreadOnly)
return tracks