[CalendarServer-changes] [8985] CalendarServer/trunk/calendarserver/tools/shell/vfs.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 4 17:13:26 PDT 2012
Revision: 8985
http://trac.macosforge.org/projects/calendarserver/changeset/8985
Author: wsanchez at apple.com
Date: 2012-04-04 17:13:26 -0700 (Wed, 04 Apr 2012)
Log Message:
-----------
Print attachment info
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell/vfs.py
Modified: CalendarServer/trunk/calendarserver/tools/shell/vfs.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-04 23:52:40 UTC (rev 8984)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-05 00:13:26 UTC (rev 8985)
@@ -612,11 +612,9 @@
#
# Attachments
#
-# attachments = (yield self.object.attachments())
-# log.msg("%r" % (attachments,))
-# for attachment in attachments:
-# log.msg("%r" % (attachment,))
-# # FIXME: Not getting any results here
+ attachments = (yield self.object.attachments())
+ for attachment in attachments:
+ rows.append(("Attachment", "%s (%d bytes)" % (attachment.name(), attachment.size())))
returnValue("Calendar object:\n%s" % tableString(rows))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120404/f2db6fd2/attachment.html>
More information about the calendarserver-changes
mailing list