[CalendarServer-changes] [9113] CalendarServer/trunk/calendarserver/tools/shell/cmd.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 13 18:06:19 PDT 2012
Revision: 9113
http://trac.macosforge.org/projects/calendarserver/changeset/9113
Author: wsanchez at apple.com
Date: 2012-04-13 18:06:18 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
Sort list() output in cmd_ls
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell/cmd.py
Modified: CalendarServer/trunk/calendarserver/tools/shell/cmd.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/cmd.py 2012-04-14 01:05:23 UTC (rev 9112)
+++ CalendarServer/trunk/calendarserver/tools/shell/cmd.py 2012-04-14 01:06:18 UTC (rev 9113)
@@ -384,7 +384,7 @@
multiple = len(targets) > 0
for target in targets:
- entries = (yield target.list())
+ entries = sorted((yield target.list()), key=lambda e: e.fileName)
#
# FIXME: this can be ugly if, for example, there are zillions
# of entries to output. Paging would be good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/8b1b594d/attachment.html>
More information about the calendarserver-changes
mailing list