web/views/formrenderers.py
branchstable
changeset 2148 2b2b9626a98f
parent 2093 e3aaf61f8c66
child 2181 94ca417b9b07
child 2198 ac45d4dbaf76
--- a/web/views/formrenderers.py	Tue Jun 23 13:46:18 2009 +0200
+++ b/web/views/formrenderers.py	Tue Jun 23 15:37:51 2009 +0200
@@ -206,6 +206,8 @@
         w(u'</table>')
 
     def render_buttons(self, w, form):
+        if not form.form_buttons:
+            return
         w(u'<table class="%s">\n<tr>\n' % self.button_bar_class)
         for button in form.form_buttons:
             w(u'<td>%s</td>\n' % button.render(form))