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

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 11 13:38:12 PST 2011


Revision: 8282
          http://trac.macosforge.org/projects/calendarserver/changeset/8282
Author:   wsanchez at apple.com
Date:     2011-11-11 13:38:10 -0800 (Fri, 11 Nov 2011)
Log Message:
-----------
Fill in list() in CalendarHome

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/shell.py

Modified: CalendarServer/trunk/calendarserver/tools/shell.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell.py	2011-11-11 21:14:25 UTC (rev 8281)
+++ CalendarServer/trunk/calendarserver/tools/shell.py	2011-11-11 21:38:10 UTC (rev 8282)
@@ -455,12 +455,12 @@
         # modified() -> int
         # properties -> IPropertyStore
 
-        uid          = self.home.uid()
-        created      = self.home.created()
-        modified     = self.home.modified()
+        uid          = (yield self.home.uid())
+        created      = (yield self.home.created())
+        modified     = (yield self.home.modified())
         quotaUsed    = (yield self.home.quotaUsedBytes())
-        quotaAllowed = self.home.quotaAllowedBytes()
-        properties   = self.home.properties()
+        quotaAllowed = (yield self.home.quotaAllowedBytes())
+        properties   = (yield self.home.properties())
 
         result = []
         result.append("Calendar home for UID: %s" % (uid,))
@@ -480,11 +480,10 @@
 
         returnValue("\n".join(result))
 
+    @inlineCallbacks
     def list(self):
-        calendars = self.home.calendars()
-        
-        # FIXME
-        return succeed(())
+        calendars = (yield self.home.calendars())
+        returnValue((c.name() for c in calendars))
 
 
 def main(argv=sys.argv, stderr=sys.stderr, reactor=None):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111111/c0ed93f9/attachment-0001.html>


More information about the calendarserver-changes mailing list