changeset 192:dbc397782c76

fix bugs with new breadcrumbs.
author casties
date Wed, 19 Jun 2013 12:56:45 +0200
parents 90d44df497a6
children 522d32a50c2b
files MPIWGDepartment.py MPIWGFeature.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGDepartment.py	Wed Jun 19 11:52:48 2013 +0200
+++ b/MPIWGDepartment.py	Wed Jun 19 12:56:45 2013 +0200
@@ -213,7 +213,7 @@
 
     def getBreadcrumbs(self):
         """return list of breadcrumbs from here to the root"""
-        crumbs = [(self.getFullTitle(), self.absolute_url(), self)]
+        crumbs = [{'text':self.getFullTitle(), 'url':self.absolute_url(), 'object':self}]
         parent = self.aq_parent
         if hasattr(parent, 'getBreadcrumbs'):
             if self.title:
--- a/MPIWGFeature.py	Wed Jun 19 11:52:48 2013 +0200
+++ b/MPIWGFeature.py	Wed Jun 19 12:56:45 2013 +0200
@@ -223,7 +223,7 @@
        
     def getBreadcrumbs(self):
         """return list of breadcrumbs from here to the root"""
-        crumbs = [(self.getFullTitle(), self.absolute_url(), self)]
+        crumbs = [{'text':self.getFullTitle(), 'url':self.absolute_url(), 'object':self}]
         parent = self.aq_parent
         if hasattr(parent, 'getBreadcrumbs'):
             if self.title: