[CalendarServer-changes] [3605] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/ directory
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 21 20:07:14 PST 2009
Revision: 3605
http://trac.macosforge.org/projects/calendarserver/changeset/3605
Author: cdaboo at apple.com
Date: 2009-01-21 20:07:13 -0800 (Wed, 21 Jan 2009)
Log Message:
-----------
Make calendar user address comparisons case-insensitive.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/appleopendirectory.py
CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/directory.py
CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/xmlaccountsparser.py
Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/appleopendirectory.py 2009-01-21 23:23:36 UTC (rev 3604)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/appleopendirectory.py 2009-01-22 04:07:13 UTC (rev 3605)
@@ -351,7 +351,7 @@
if isinstance(emails, str):
emails = [emails]
for email in emails:
- result.add("mailto:%s" % (email,))
+ result.add("mailto:%s" % (email.lower(),))
return result
Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/directory.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/directory.py 2009-01-21 23:23:36 UTC (rev 3604)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/directory.py 2009-01-22 04:07:13 UTC (rev 3605)
@@ -128,6 +128,7 @@
return None
def recordWithCalendarUserAddress(self, address):
+ address = address.lower()
for record in self.allRecords():
if address in record.calendarUserAddresses:
return record
Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/xmlaccountsparser.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/xmlaccountsparser.py 2009-01-21 23:23:36 UTC (rev 3604)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/directory/xmlaccountsparser.py 2009-01-22 04:07:13 UTC (rev 3605)
@@ -241,7 +241,7 @@
self._parseMembers(child, self.members)
elif child_name == ELEMENT_CUADDR:
if child.firstChild is not None:
- self.calendarUserAddresses.add(child.firstChild.data.encode("utf-8"))
+ self.calendarUserAddresses.add(child.firstChild.data.encode("utf-8").lower())
elif child_name == ELEMENT_AUTOSCHEDULE:
# Only Resources & Locations
if self.recordType not in (DirectoryService.recordType_resources, DirectoryService.recordType_locations):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090121/e2810da5/attachment.html>
More information about the calendarserver-changes
mailing list