--- a/src/pyams_skin/viewlet/toplinks/__init__.py Wed May 20 15:01:45 2015 +0200
+++ b/src/pyams_skin/viewlet/toplinks/__init__.py Wed Jun 17 10:00:10 2015 +0200
@@ -71,7 +71,7 @@
if self.css_class == 'divider':
return '<li class="divider"></li>'
else:
- label = self.request.localizer.translate(self.label, context=self.request)
+ label = self.request.localizer.translate(self.label)
return '''<li class="{0}">
<a href="{1}" {2}>{3}</a>
</li>'''.format(self.css_class,
@@ -83,7 +83,7 @@
data = self.data.copy()
if self.click_handler:
data.update({'data-ams-click-handler': self.click_handler})
- return ' '.join('%s=%s' % item for item in data.iteritems())
+ return ' '.join('%s=%s' % item for item in data.items())
#