Log "nobody" instead of "None" as anonymous calendars owner.

This commit is contained in:
Guillaume Ayoub 2011-06-11 18:14:08 +02:00
parent abb70cef49
commit 3149643706

View File

@ -184,7 +184,8 @@ class Application(object):
calendars.append(calendar)
continue
log.LOGGER.info(
"Checking rights for calendar owned by %s" % calendar.owner)
"Checking rights for calendar owned by %s" % (
calendar.owner or "nobody"))
if self.acl.has_right(calendar.owner, user, password):
log.LOGGER.info("%s allowed" % (user or "anonymous user"))