diff MoinMoin/themes/__init__.py @ 2252:ecd43cdbb9b6

breadcrubms now show up titles properly.
author Ashutosh Singla <ashu1461@gmail.com>
date Tue, 27 Aug 2013 19:11:15 +0530
parents 5f2fb2d7ed87
children 46b74c363c6f
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sat Aug 24 15:52:53 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Tue Aug 27 19:11:15 2013 +0530
@@ -96,10 +96,10 @@
         namespace = fqname.namespace
         fq_current = CompositeName(u'', NAME_EXACT, namespace)
         fq_segment = CompositeName(u'', NAME_EXACT, namespace or '~')
-        breadcrumbs.append((CompositeName(fq_segment, fq_current, False)))
+        breadcrumbs.append((fq_segment, fq_current, False))
         item_name = fqname.value
         if not item_name:
-            return breadcrumbs if namespace else []
+            return breadcrumbs
         for segment in item_name.split('/'):
             current_item += segment
             fq_current = CompositeName(namespace, NAME_EXACT, current_item)