[CalendarServer-changes] [5775] CalendarServer/branches/release/CalendarServer-2.5-dev/twistedcaldav /directory/principal.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 18 10:03:56 PDT 2010


Revision: 5775
          http://trac.macosforge.org/projects/calendarserver/changeset/5775
Author:   sagen at apple.com
Date:     2010-06-18 10:03:56 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
Base the principalURL value on the principal's UID.

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-2.5-dev/twistedcaldav/directory/principal.py

Modified: CalendarServer/branches/release/CalendarServer-2.5-dev/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-2.5-dev/twistedcaldav/directory/principal.py	2010-06-18 15:28:25 UTC (rev 5774)
+++ CalendarServer/branches/release/CalendarServer-2.5-dev/twistedcaldav/directory/principal.py	2010-06-18 17:03:56 UTC (rev 5775)
@@ -527,10 +527,11 @@
 
         assert record is not None, "Principal must have a directory record"
 
-        url = joinURL(parent.principalCollectionURL(), record.guid) + slash
 
         self.record = record
         self.parent = parent
+
+        url = joinURL(parent.principalCollectionURL(), self.principalUID()) + slash
         self._url   = url
 
         self._alternate_urls = tuple([
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100618/d8dd5ae2/attachment.html>


More information about the calendarserver-changes mailing list