[CalendarServer-changes] [9500] CalendarServer/branches/users/gaya/inviteclean/txdav/common/ datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 26 14:00:02 PDT 2012


Revision: 9500
          http://trac.macosforge.org/projects/calendarserver/changeset/9500
Author:   gaya at apple.com
Date:     2012-07-26 14:00:02 -0700 (Thu, 26 Jul 2012)
Log Message:
-----------
fix _acceptedBindFor() and a few comments

Modified Paths:
--------------
    CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py

Modified: CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py	2012-07-26 18:35:24 UTC (rev 9499)
+++ CalendarServer/branches/users/gaya/inviteclean/txdav/common/datastore/sql.py	2012-07-26 21:00:02 UTC (rev 9500)
@@ -2334,12 +2334,12 @@
     
 
     @classproperty
-    #FIXME:  almost the same as _
     def _acceptedBindFor(cls): #@NoSelf
         bind = cls._bindSchema
         return Select(
             [bind.BIND_MODE, 
              bind.HOME_RESOURCE_ID,
+             bind.RESOURCE_ID,
              bind.RESOURCE_NAME,
              bind.BIND_STATUS,
              bind.MESSAGE],
@@ -2363,11 +2363,11 @@
             L{CommonHomeChild} as a child of different L{CommonHome}s
         @rtype: a L{Deferred} which fires with a L{list} of L{ICalendar}s.
         """
-        # get all accepted binds, add inviteUID=None, and put in dict by home homeResourceID
+        # get all accepted binds, add inviteUID=None, and put in dict by homeResourceID
         acceptedRows = yield self._acceptedBindFor.on(self._txn, resourceID=self._resourceID)
         acceptedRowDict = dict([(row[1], row + [None,]) for row in acceptedRows])
         
-        # get accepted binds with associated inviteUID, and put in dict by home homeResourceID
+        # get accepted binds with associated inviteUID, and put in dict by homeResourceID
         inviteRows = yield self._sharedWithInviteFor.on(self._txn, resourceID=self._resourceID)
         inviteRowDict = dict([(row[1], row) for row in inviteRows])
         
@@ -2618,7 +2618,7 @@
     def _homeChildByIDQuery(cls): #@NoSelf
         """
         DAL query that looks up home child names / bind modes by home child
-        resouce ID and home resource ID.
+        resource ID and home resource ID.
         """
         bind = cls._bindSchema
         return Select([bind.RESOURCE_NAME, bind.BIND_MODE],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120726/2daf8687/attachment.html>


More information about the calendarserver-changes mailing list