' % self._class)
+ self.w(u'
' % self._class)
if self.title:
if self.escape:
title = '%s' % html_escape(self.title)
@@ -100,7 +100,7 @@
super(SideBoxWidget, self).__init__(title, id=id, _class='sideBox',
shadow=False)
-
+
class MenuWidget(BoxWidget):
main_div_class = 'menuContent'
listing_class = 'menuListing'
@@ -109,7 +109,7 @@
if self.islist:
self.w(u'\n')
self.w(u'
\n')
-
+
class RawBoxItem(HTMLWidget):
"""a simpe box item displaying raw data"""
@@ -122,9 +122,9 @@
return u'
'
else:
return u'' % self.liclass
-
+
return self.label
-
+
def _render(self):
self.w(u'%s%s' % (self._start_li(), self.label))
@@ -132,7 +132,7 @@
class BoxMenu(RawBoxItem):
"""a menu in a box"""
link_class = 'boxMenu'
-
+
def __init__(self, label, items=None, isitem=True, liclass=None, ident=None,
link_class=None):
super(BoxMenu, self).__init__(label, liclass)
@@ -141,7 +141,7 @@
self.ident = ident or u'boxmenu_%s' % label.replace(' ', '_').replace("'", '')
if link_class:
self.link_class = link_class
-
+
def append(self, item):
self.items.append(item)
@@ -150,7 +150,7 @@
def _end_menu(self):
self.w(u'')
-
+
def _render(self):
if self.isitem:
self.w(self._start_li())
@@ -183,15 +183,15 @@
def __init__(self, label, value):
self.label = label
self.value = value
-
+
def _render(self):
self.w(u'
%s '
- u'%s
'
+ u'
%s'
% (self.label, self.value))
class BoxSeparator(HTMLWidget):
"""a menu separator"""
-
+
def _render(self):
self.w(u'