--- a/web/views/boxes.py Tue Jul 12 12:22:03 2011 +0200
+++ b/web/views/boxes.py Wed Jul 20 14:09:42 2011 +0200
@@ -185,7 +185,7 @@
def render_body(self, w):
for category, views in box.sort_by_category(self.views):
- menu = htmlwidgets.BoxMenu(category)
+ menu = htmlwidgets.BoxMenu(self._cw._(category))
for view in views:
menu.append(self.action_link(view))
self.append(menu)
@@ -208,6 +208,7 @@
raise component.EmptyComponent()
self.items = []
+
class RsetBox(component.CtxComponent):
"""helper view class to display an rset in a sidebox"""
__select__ = nonempty_rset() & match_kwargs('title', 'vid')