[CalendarServer-changes] [7618] CalendarServer/branches/users/glyph/quota/txdav/caldav/ icalendarstore.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 20 11:44:26 PDT 2011
Revision: 7618
http://trac.macosforge.org/projects/calendarserver/changeset/7618
Author: glyph at apple.com
Date: 2011-06-20 11:44:25 -0700 (Mon, 20 Jun 2011)
Log Message:
-----------
be clearer about return type of attachmentWithName in various conditions
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:13 UTC (rev 7617)
+++ CalendarServer/branches/users/glyph/quota/txdav/caldav/icalendarstore.py 2011-06-20 18:44:25 UTC (rev 7618)
@@ -426,12 +426,17 @@
def attachmentWithName(name):
"""
- Retrieve an attachment from this calendar object.
+ Retrieve an attachment from this calendar object. If no such attachment
+ exists, return C{None}.
@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.
+
+ @rtype: C{NoneType} or L{IAttachment}
"""
# FIXME: MIME-type?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110620/95359a39/attachment.html>
More information about the calendarserver-changes
mailing list