[CalendarServer-changes] [2722] CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/ scheduling/addressmapping.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 18 07:52:10 PDT 2008


Revision: 2722
          http://trac.macosforge.org/projects/calendarserver/changeset/2722
Author:   cdaboo at apple.com
Date:     2008-07-18 07:52:09 -0700 (Fri, 18 Jul 2008)
Log Message:
-----------
When there is no principal for a CalDAV address we have an invalid user.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/scheduling/addressmapping.py

Modified: CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/scheduling/addressmapping.py
===================================================================
--- CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/scheduling/addressmapping.py	2008-07-18 01:08:38 UTC (rev 2721)
+++ CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/scheduling/addressmapping.py	2008-07-18 14:52:09 UTC (rev 2722)
@@ -51,7 +51,10 @@
         # Get the type
         cuaddr_type = (yield self.getCalendarUserServiceType(cuaddr))
         if cuaddr_type == DeliveryService.serviceType_caldav:
-            returnValue(LocalCalendarUser(cuaddr, principal))
+            if principal:
+                returnValue(LocalCalendarUser(cuaddr, principal))
+            else:
+                returnValue(InvalidCalendarUser(cuaddr))
         elif cuaddr_type == DeliveryService.serviceType_ischedule:
             returnValue(RemoteCalendarUser(cuaddr))
         elif cuaddr_type == DeliveryService.serviceType_imip:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080718/eed476ed/attachment.html 


More information about the calendarserver-changes mailing list