Commits

Mike Orr  committed c6b3204

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

  • Participants
  • Parent commits 8a67077

Comments (0)

Files changed (2)

File tests/test_tags.py

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

File webhelpers/html/tags.py

     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)