[CalendarServer-changes] [8468] CalendarServer/trunk/calendarserver/tools/shell.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Dec 16 15:12:08 PST 2011
Revision: 8468
http://trac.macosforge.org/projects/calendarserver/changeset/8468
Author: wsanchez at apple.com
Date: 2011-12-16 15:12:07 -0800 (Fri, 16 Dec 2011)
Log Message:
-----------
Fix cd completion
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell.py
Modified: CalendarServer/trunk/calendarserver/tools/shell.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell.py 2011-12-16 22:48:56 UTC (rev 8467)
+++ CalendarServer/trunk/calendarserver/tools/shell.py 2011-12-16 23:12:07 UTC (rev 8468)
@@ -373,7 +373,7 @@
filter = lambda items: True
files = (
- item[1]
+ self._listEntryToString(item)
for item in (yield self.wd.list())
if filter(item)
)
@@ -538,10 +538,10 @@
@inlineCallbacks
def complete_cd(self, tokens):
- return self._complete_files(
+ returnValue((yield self._complete_files(
tokens,
filter = lambda item: issubclass(item[0], Folder)
- )
+ )))
@inlineCallbacks
def cmd_ls(self, tokens):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111216/287c7c10/attachment.html>
More information about the calendarserver-changes
mailing list