Mike Orr  committed c6b3204

Make submit()'s args consistent with the other tags.

  • Participants
  • Parent commits 8a67077
  • Branches trunk

Comments (0)

Files changed (2)

File tests/

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

File webhelpers/html/

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