[CalendarServer-changes] [7619] CalendarServer/branches/users/glyph/quota/txdav/caldav/ icalendarstore.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 20 11:44:37 PDT 2011


Revision: 7619
          http://trac.macosforge.org/projects/calendarserver/changeset/7619
Author:   glyph at apple.com
Date:     2011-06-20 11:44:36 -0700 (Mon, 20 Jun 2011)
Log Message:
-----------
oops, that's a Deferred - say so

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/quota/txdav/caldav/icalendarstore.py

Modified: CalendarServer/branches/users/glyph/quota/txdav/caldav/icalendarstore.py
===================================================================
--- CalendarServer/branches/users/glyph/quota/txdav/caldav/icalendarstore.py	2011-06-20 18:44:25 UTC (rev 7618)
+++ CalendarServer/branches/users/glyph/quota/txdav/caldav/icalendarstore.py	2011-06-20 18:44:36 UTC (rev 7619)
@@ -426,17 +426,18 @@
 
     def attachmentWithName(name):
         """
-        Retrieve an attachment from this calendar object.  If no such attachment
-        exists, return C{None}.
+        Asynchronously retrieve an attachment with the given name from this
+        calendar object.
 
         @param name: An identifier, unique to this L{ICalendarObject}, which
             names the attachment for future retrieval.
 
         @type name: C{str}
 
-        @return: an attachment with the given name, or None.
+        @return: a L{Deferred} which fires with an L{IAttachment} with the given
+            name, or L{None} if no such attachment exists.
 
-        @rtype: C{NoneType} or L{IAttachment}
+        @rtype: L{Deferred}
         """
         # FIXME: MIME-type?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110620/8096e0d7/attachment-0001.html>


More information about the calendarserver-changes mailing list