diff MoinMoin/themes/__init__.py @ 1800:54062fc0ca97

Separate "directory" and "file" items in the index view.
author Cheer Xiao <xiaqqaix@gmail.com>
date Sat, 29 Sep 2012 23:55:58 +0800
parents 54be46b8a0b4
children f6afb9aeb861
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sat Sep 29 23:55:57 2012 +0800
+++ b/MoinMoin/themes/__init__.py	Sat Sep 29 23:55:58 2012 +0800
@@ -124,10 +124,7 @@
         """
         from MoinMoin.items import Item
         item = Item.create(item_name)
-        item_index = item.get_index()
-        # Sort items by whether or not they have children, then by name:
-        item_index = sorted(item_index, key=attrgetter('hassubitems', 'relname'))
-        return item_index
+        return item.get_mixed_index()
 
     def userhome(self):
         """