[CalendarServer-changes] [1533] CalendarServer/trunk/twistedcaldav/directory/principal.py

source_changes at macosforge.org source_changes at macosforge.org
Thu May 17 09:56:18 PDT 2007


Revision: 1533
          http://trac.macosforge.org/projects/calendarserver/changeset/1533
Author:   cdaboo at apple.com
Date:     2007-05-17 09:56:17 -0700 (Thu, 17 May 2007)

Log Message:
-----------
Fix for an invalid urn:uuid address in scheduling that was causing a 500 error.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/principal.py

Modified: CalendarServer/trunk/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/principal.py	2007-05-17 16:50:58 UTC (rev 1532)
+++ CalendarServer/trunk/twistedcaldav/directory/principal.py	2007-05-17 16:56:17 UTC (rev 1533)
@@ -97,7 +97,11 @@
         return self.principalForShortName(DirectoryService.recordType_users, user)
 
     def principalForGUID(self, guid):
-        return self.principalForRecord(self.directory.recordWithGUID(guid))
+        record = self.directory.recordWithGUID(guid)
+        if record:
+            return self.principalForRecord(record)
+        else:
+            return None
 
     def principalForRecord(self, record):
         return self.principalForShortName(record.recordType, record.shortName)

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


More information about the calendarserver-changes mailing list