diff MoinMoin/themes/__init__.py @ 2263:6dd5af01d54d

Sub-items pannel now has fqname support.
author Ashutosh Singla <ashu1461@gmail.com>
date Wed, 11 Sep 2013 14:48:02 +0530
parents 46b74c363c6f
children a8e67947f130
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Wed Sep 11 13:17:49 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Wed Sep 11 14:48:02 2013 +0530
@@ -132,15 +132,17 @@
                 breadcrumbs.append((wiki_name, fqname, href, exists, err))
         return breadcrumbs
 
-    def subitem_index(self, item_name):
+    def subitem_index(self, fqname):
         """
-        Get a list of subitems for the given item_name
+        Get a list of subitems for the given fqname
 
         :rtype: list
         :returns: list of item tuples (item_name, item_title, item_mime_type, has_children)
         """
         from MoinMoin.items import Item
-        item = Item.create(item_name)
+        if not isinstance(fqname, CompositeName):
+            fqname = split_fqname(fqname)
+        item = Item.create(fqname.fullname)
         return item.get_mixed_index()
 
     def userhome(self):