[CalendarServer-changes] [5811] CalendarServer/trunk/twistedcaldav/directory/test/test_opendirectory .py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 28 14:29:51 PDT 2010


Revision: 5811
          http://trac.macosforge.org/projects/calendarserver/changeset/5811
Author:   sagen at apple.com
Date:     2010-06-28 14:29:51 -0700 (Mon, 28 Jun 2010)
Log Message:
-----------
Use dsattributes constants.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/test/test_opendirectory.py

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_opendirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_opendirectory.py	2010-06-28 21:00:58 UTC (rev 5810)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_opendirectory.py	2010-06-28 21:29:51 UTC (rev 5811)
@@ -320,10 +320,10 @@
                     if caseless:
                         fieldValue = fieldValue.lower()
                         value = value.lower()
-                    if matchType == "starts-with":
+                    if matchType == dsattributes.eDSStartsWith:
                         if fieldValue.startswith(value):
                             return True
-                    elif matchType == "contains":
+                    elif matchType == dsattributes.eDSContains:
                         try:
                             fieldValue.index(value)
                             return True
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100628/665722a9/attachment.html>


More information about the calendarserver-changes mailing list