[CalendarServer-changes] [1014] CalendarServer/trunk/twistedcaldav/schedule.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jan 10 15:53:17 PST 2007


Revision: 1014
          http://trac.macosforge.org/projects/calendarserver/changeset/1014
Author:   wsanchez at apple.com
Date:     2007-01-10 15:53:13 -0800 (Wed, 10 Jan 2007)

Log Message:
-----------
Distinguish between no principal and no inbox in logging

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/schedule.py

Modified: CalendarServer/trunk/twistedcaldav/schedule.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/schedule.py	2007-01-10 23:22:57 UTC (rev 1013)
+++ CalendarServer/trunk/twistedcaldav/schedule.py	2007-01-10 23:53:13 UTC (rev 1014)
@@ -323,14 +323,18 @@
 
             # Map recipient to their inbox
             inbox = None
-            if principal is not None:
+            if principal is None:
+                log.err("No principal for calendar user address: %s" % (recipient,))
+            else:
                 inboxURL = principal.scheduleInboxURL()
                 if inboxURL:
                     inbox = waitForDeferred(request.locateResource(inboxURL))
                     yield inbox
                     inbox = inbox.getResult()
+                else:
+                    log.err("No schedule inbox for principal: %s" % (principal,))
+
             if inbox is None:
-                log.err("Could not find Inbox for recipient: %s" % (recipient,))
                 err = HTTPError(ErrorResponse(responsecode.NOT_FOUND, (caldav_namespace, "recipient-exists")))
                 responses.add(recipient, Failure(exc_value=err), reqstatus="3.7;Invalid Calendar User")
                 recipients_state["BAD"] += 1
@@ -338,7 +342,6 @@
                 # Process next recipient
                 continue
             else:
-
                 #
                 # Check access controls
                 #

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070110/cb158014/attachment.html


More information about the calendarserver-changes mailing list