use registry contentnavigation not toolbar (changed in datafeed)
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 12 Aug 2010 19:17:48 +0200
changeset 226 411f1f56c998
parent 225 2b2b36ff7027
child 227 3f6c3b5c133f
use registry contentnavigation not toolbar (changed in datafeed)
views/primary.py
views/secondary.py
--- a/views/primary.py	Fri Aug 06 12:14:44 2010 +0200
+++ b/views/primary.py	Thu Aug 12 19:17:48 2010 +0200
@@ -76,7 +76,7 @@
         vtitle = _('blog entries created by %s') % name
         url = req.build_url('view', rql=rql, vtitle=vtitle, page_size=10)
         w(u' %s <a title="%s" href="%s">%s</a>' % (
-            _('by'), xml_escape(vtitle), xml_escape(url), name))
+            _('by'), xml_escape(vtitle), xml_escape(url), xml_escape(name)))
     w(u'</div></div>')
 
 class BlogEntryPrimaryView(primary.PrimaryView):
@@ -87,7 +87,7 @@
         # copy from PrimaryView
         context = 'ctxtoolbar'
         self.w(u'<div class="%s">' % context)
-        for comp in self._cw.vreg['toolbar'].poss_visible_objects(
+        for comp in self._cw.vreg['contentnavigation'].poss_visible_objects(
             self._cw, rset=self.cw_rset, row=self.cw_row, view=self, context=context):
             comp.render(w=self.w, row=self.cw_row, view=self)
         self.w(u'</div>')
--- a/views/secondary.py	Fri Aug 06 12:14:44 2010 +0200
+++ b/views/secondary.py	Thu Aug 12 19:17:48 2010 +0200
@@ -131,7 +131,7 @@
     def toolbar_components(self, context):
         # copy from PrimaryView
         self.w(u'<div class="%s">' % context)
-        for comp in self._cw.vreg['toolbar'].poss_visible_objects(
+        for comp in self._cw.vreg['contentnavigation'].poss_visible_objects(
             self._cw, rset=self.cw_rset, row=self.cw_row, view=self, context=context):
             comp.render(w=self.w, row=self.cw_row, view=self)
         self.w(u'</div>')