web/htmlwidgets.py
changeset 6140 65a619eb31c4
parent 5727 29afb9e715bb
child 6154 b520763b6ace
--- a/web/htmlwidgets.py	Wed Aug 25 09:43:12 2010 +0200
+++ b/web/htmlwidgets.py	Wed Aug 25 10:01:11 2010 +0200
@@ -182,7 +182,10 @@
             toggle_action(ident), self.link_class, self.label))
         self._begin_menu(ident)
         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._end_menu()
         if self.isitem:
             self.w(u'</li>')