[CalendarServer-changes] [14107] twext/trunk/twext/who/ldap
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 27 10:05:53 PDT 2014
Revision: 14107
http://trac.calendarserver.org//changeset/14107
Author: sagen at apple.com
Date: 2014-10-27 10:05:53 -0700 (Mon, 27 Oct 2014)
Log Message:
-----------
boolean LDAP attribute mapping now uses colon
Modified Paths:
--------------
twext/trunk/twext/who/ldap/_util.py
twext/trunk/twext/who/ldap/test/test_util.py
Modified: twext/trunk/twext/who/ldap/_util.py
===================================================================
--- twext/trunk/twext/who/ldap/_util.py 2014-10-27 14:46:37 UTC (rev 14106)
+++ twext/trunk/twext/who/ldap/_util.py 2014-10-27 17:05:53 UTC (rev 14107)
@@ -235,8 +235,8 @@
queryStrings = []
for attribute in attributes:
- if "=" in attribute:
- attribute, trueValue = attribute.split("=")
+ if ":" in attribute:
+ attribute, trueValue = attribute.split(":")
else:
trueValue = "true"
Modified: twext/trunk/twext/who/ldap/test/test_util.py
===================================================================
--- twext/trunk/twext/who/ldap/test/test_util.py 2014-10-27 14:46:37 UTC (rev 14106)
+++ twext/trunk/twext/who/ldap/test/test_util.py 2014-10-27 17:05:53 UTC (rev 14107)
@@ -160,7 +160,7 @@
service = self.service()
testFieldNameMap = {
- TestFieldName.isAwesome: ("awesome=totally",),
+ TestFieldName.isAwesome: ("awesome:totally",),
TestFieldName.isCool: ("cool",),
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20141027/7b07099f/attachment-0001.html>
More information about the calendarserver-changes
mailing list