Mike Orr committed c901b96

Make submit()'s ``value`` arg required.

  • Participants
  • Parent commits c6b3204

Comments (0)

Files changed (2)

File tests/

     def test_submit(self):
             u'<input name="commit" type="submit" value="Save changes" />',
-            submit("commit")
+            submit("commit", "Save changes")
     def test_text_area(self):

File webhelpers/html/

     return HTML.input(**attrs)
-def submit(name, value="Save changes", **attrs):
+def submit(name, value, **attrs):
     """Create a submit button with the text ``value`` as the caption."""
     set_input_attrs(attrs, "submit", name, value)
     return HTML.input(**attrs)