[CalendarServer-changes] [9150] CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav /method/report_multiget_common.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 18 16:12:27 PDT 2012
Revision: 9150
http://trac.macosforge.org/projects/calendarserver/changeset/9150
Author: gaya at apple.com
Date: 2012-04-18 16:12:27 -0700 (Wed, 18 Apr 2012)
Log Message:
-----------
in doDirectoryAddressBookResponse(), use UID TextMatch "equals" instead "contains"
Modified Paths:
--------------
CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/method/report_multiget_common.py
Modified: CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/method/report_multiget_common.py
===================================================================
--- CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/method/report_multiget_common.py 2012-04-18 21:24:06 UTC (rev 9149)
+++ CalendarServer/branches/users/gaya/ldapdirectorybacker/twistedcaldav/method/report_multiget_common.py 2012-04-18 23:12:27 UTC (rev 9150)
@@ -259,8 +259,10 @@
resource_name = unquote(resource_uri[resource_uri.rfind("/") + 1:])
if self._isChildURI(request, resource_uri) and resource_name.endswith(".vcf") and len(resource_name) > 4:
valid_hrefs.append(href)
+ textMatchElement = carddavxml.TextMatch.fromString(resource_name[:-4])
+ textMatchElement.attributes["match-type"] = "equals" # do equals compare. Default is "contains"
vCardFilters.append(carddavxml.PropertyFilter(
- carddavxml.TextMatch.fromString(resource_name[:-4]),
+ textMatchElement,
name="UID", # attributes
))
else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120418/365bf5cb/attachment-0001.html>
More information about the calendarserver-changes
mailing list