[CalendarServer-changes] [12601] twext/trunk/twext/who/opendirectory/_service.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:21:44 PDT 2014
Revision: 12601
http://trac.calendarserver.org//changeset/12601
Author: sagen at apple.com
Date: 2014-02-06 16:54:09 -0800 (Thu, 06 Feb 2014)
Log Message:
-----------
For OD, when querying on uid, use guid field
Modified Paths:
--------------
twext/trunk/twext/who/opendirectory/_service.py
Modified: twext/trunk/twext/who/opendirectory/_service.py
===================================================================
--- twext/trunk/twext/who/opendirectory/_service.py 2014-02-07 00:39:04 UTC (rev 12600)
+++ twext/trunk/twext/who/opendirectory/_service.py 2014-02-07 00:54:09 UTC (rev 12601)
@@ -383,6 +383,10 @@
fetchAttributes = [a.value for a in ODAttribute.iterconstants()]
maxResults = 0
+ # For OpenDirectory, use guid for uid:
+ if expression.fieldName is self.fieldName.uid:
+ expression.fieldName = self.fieldName.guid
+
if expression.fieldName is self.fieldName.recordType:
recordTypes = ODRecordType.fromRecordType(
expression.fieldValue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/3d34da96/attachment.html>
More information about the calendarserver-changes
mailing list