[CalendarServer-changes] [11921] CalendarServer/trunk/twext/who/expression.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:19:55 PDT 2014


Revision: 11921
          http://trac.calendarserver.org//changeset/11921
Author:   wsanchez at apple.com
Date:     2013-11-08 15:22:22 -0800 (Fri, 08 Nov 2013)
Log Message:
-----------
flakes

Modified Paths:
--------------
    CalendarServer/trunk/twext/who/expression.py

Modified: CalendarServer/trunk/twext/who/expression.py
===================================================================
--- CalendarServer/trunk/twext/who/expression.py	2013-11-08 23:22:03 UTC (rev 11920)
+++ CalendarServer/trunk/twext/who/expression.py	2013-11-08 23:22:22 UTC (rev 11921)
@@ -58,16 +58,17 @@
     """
     Query match types.
     """
-    equals     = NamedConstant()
+    equals = NamedConstant()
+    equals.description = u"equals"
+
     startsWith = NamedConstant()
-    contains   = NamedConstant()
-
-    equals.description     = u"equals"
     startsWith.description = u"starts with"
-    contains.description   = u"contains"
 
+    contains = NamedConstant()
+    contains.description = u"contains"
 
 
+
 class MatchFlags(Flags):
     """
     Match expression flags.
@@ -98,10 +99,10 @@
         fieldName, fieldValue,
         matchType=MatchType.equals, flags=None
     ):
-        self.fieldName  = fieldName
+        self.fieldName = fieldName
         self.fieldValue = fieldValue
-        self.matchType  = matchType
-        self.flags      = flags
+        self.matchType = matchType
+        self.flags = flags
 
 
     def __repr__(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/0e2be3eb/attachment.html>


More information about the calendarserver-changes mailing list