[CalendarServer-changes] [10752] CalendarServer/trunk/twext/who/directory.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 18 10:24:45 PST 2013
Revision: 10752
http://trac.calendarserver.org//changeset/10752
Author: wsanchez at apple.com
Date: 2013-02-18 10:24:45 -0800 (Mon, 18 Feb 2013)
Log Message:
-----------
Don't define __eq__ on DirectoryService.
Modified Paths:
--------------
CalendarServer/trunk/twext/who/directory.py
Modified: CalendarServer/trunk/twext/who/directory.py
===================================================================
--- CalendarServer/trunk/twext/who/directory.py 2013-02-16 00:53:00 UTC (rev 10751)
+++ CalendarServer/trunk/twext/who/directory.py 2013-02-18 18:24:45 UTC (rev 10752)
@@ -62,19 +62,6 @@
)
- def __eq__(self, other):
- if IDirectoryService.implementedBy(other.__class__):
- return self.realmName == other.realmName
- return NotImplemented
-
-
- def __ne__(self, other):
- eq = self.__eq__(other)
- if eq is NotImplemented:
- return NotImplemented
- return not eq
-
-
def recordTypes(self):
return succeed(self.recordType.iterconstants())
@@ -219,7 +206,7 @@
if IDirectoryRecord.implementedBy(other.__class__):
return (
self.service == other.service and
- self.fields[FieldName.uid] == other.fields[FieldName.uid]
+ self.fields == other.fields
)
return NotImplemented
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130218/32f0ac58/attachment.html>
More information about the calendarserver-changes
mailing list