web/htmlwidgets.py
changeset 6569 806b53dc5474
parent 6154 b520763b6ace
child 6800 3f3d576b87d9
--- a/web/htmlwidgets.py	Wed Oct 20 16:40:03 2010 +0200
+++ b/web/htmlwidgets.py	Wed Oct 20 17:37:00 2010 +0200
@@ -107,7 +107,10 @@
         if self.items:
             self.box_begin_content()
             for item in self.items:
-                item.render(self.w)
+                if hasattr(item, 'render'):
+                    item.render(self.w)
+                else:
+                    self.w(u'<li>%s</li>' % item)
             self.box_end_content()
         self.w(u'</div>')