[CalendarServer-changes] [8863] CalendarServer/trunk/calendarserver/tools/shell/vfs.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 13 23:26:33 PDT 2012


Revision: 8863
          http://trac.macosforge.org/projects/calendarserver/changeset/8863
Author:   wsanchez at apple.com
Date:     2012-03-13 23:26:33 -0700 (Tue, 13 Mar 2012)
Log Message:
-----------
Avoid newlines in list() output.

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-03-14 05:33:38 UTC (rev 8862)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py	2012-03-14 06:26:33 UTC (rev 8863)
@@ -441,7 +441,7 @@
     @inlineCallbacks
     def list(self):
         (yield self.lookup())
-        returnValue(((CalendarObject, self.uid, self.componentType, self.summary),))
+        returnValue(((CalendarObject, self.uid, self.componentType, self.summary.replace("\n", " ")),))
 
     @inlineCallbacks
     def text(self):
@@ -477,7 +477,6 @@
 #           log.msg("%r" % (attachment,))
 #           # FIXME: Not getting any results here
 
-
         returnValue("Calendar object:\n%s" % tableString(rows))
 
 class AddressBookHomeFolder(Folder):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120313/51d86594/attachment.html>


More information about the calendarserver-changes mailing list