Modified: CalendarServer/branches/release/CalendarServer-2.2-dev/twistedcaldav/directory/appleopendirectory.py (4300 => 4301)
--- CalendarServer/branches/release/CalendarServer-2.2-dev/twistedcaldav/directory/appleopendirectory.py 2009-05-19 22:08:12 UTC (rev 4300)
+++ CalendarServer/branches/release/CalendarServer-2.2-dev/twistedcaldav/directory/appleopendirectory.py 2009-05-19 23:26:30 UTC (rev 4301)
@@ -693,6 +693,8 @@
self.log_error("Duplicate: %s" % (", ".join(record.shortNames)))
if record:
+ if isinstance(origIndexKey, unicode):
+ origIndexKey = origIndexKey.encode("utf-8")
self.log_debug("Storing (%s %s) %s in internal cache" % (indexType, origIndexKey, record))
# Fetch the set of groups this record is a member of so we can