[CalendarServer-changes] [14415] CalendarServer/trunk/txdav/carddav/datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 13 22:17:56 PST 2015


Revision: 14415
          http://trac.calendarserver.org//changeset/14415
Author:   gaya at apple.com
Date:     2015-02-13 22:17:56 -0800 (Fri, 13 Feb 2015)
Log Message:
-----------
in _groupForSharedAddressBookComponent(), use user record name for N and FN vcard properties

Modified Paths:
--------------
    CalendarServer/trunk/txdav/carddav/datastore/sql.py

Modified: CalendarServer/trunk/txdav/carddav/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/carddav/datastore/sql.py	2015-02-14 06:04:32 UTC (rev 14414)
+++ CalendarServer/trunk/txdav/carddav/datastore/sql.py	2015-02-14 06:17:56 UTC (rev 14415)
@@ -1004,7 +1004,9 @@
     def _groupForSharedAddressBookComponent(self):
 
         uid = self._groupForSharedAddressBookUID()
-        record = yield self._txn.directoryService().recordWithUID(uid.decode("utf-8"))
+        record = yield self._txn.directoryService().recordWithUID(
+            self.viewerHome().uid().decode("utf-8")
+        )
         n = record.shortNames[0]
         fn = record.fullname if (
             hasattr(record, "fullName") and record.fullname
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150213/e58589c0/attachment.html>


More information about the calendarserver-changes mailing list