[CalendarServer-changes] [4570] CalendarServer/trunk/twistedcaldav/directory/test/ test_proxyprincipalmembers.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 2 18:08:52 PDT 2009


Revision: 4570
          http://trac.macosforge.org/projects/calendarserver/changeset/4570
Author:   cdaboo at apple.com
Date:     2009-10-02 18:08:48 -0700 (Fri, 02 Oct 2009)
Log Message:
-----------
Missed one thing from previous fix.

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

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2009-10-03 00:43:12 UTC (rev 4569)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2009-10-03 01:08:48 UTC (rev 4570)
@@ -14,7 +14,8 @@
 # limitations under the License.
 ##
 
-from twisted.internet.defer import DeferredList, inlineCallbacks, returnValue
+from twisted.internet.defer import DeferredList, inlineCallbacks, returnValue,\
+    succeed
 from twisted.web2.dav import davxml
 
 from twistedcaldav.directory.directory import DirectoryService
@@ -248,9 +249,10 @@
 
             def setGroupMembers(self, uid, members):
                 self.members = members
+                return succeed(None)
 
             def getMembers(self, uid):
-                return self.members
+                return succeed(self.members)
 
 
         user = self._getPrincipalByShortName(self.directoryService.recordType_users,
@@ -425,7 +427,7 @@
                 delRec = self.directoryService.recordWithShortName(
                     DirectoryService.recordType_users, "dreid")
                 for cache in self.directoryService._recordCaches.itervalues():
-                   cache.removeRecord(delRec)
+                    cache.removeRecord(delRec)
                 del self.directoryService._accounts()[
                     DirectoryService.recordType_users]["dreid"]
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091002/d98b2d8d/attachment-0001.html>


More information about the calendarserver-changes mailing list