Author: chrisz
Date: Thu May  1 07:59:08 2008
New Revision: 4552
URL: http://trac.turbogears.org/changeset/4552

Log:
Reverted r4549, since it had a wrong commit message and button names and ids 
are inserted into the template via attr for all Button subclasses, so setting 
them explicitly is not necessary.

Modified:
   branches/1.0/turbogears/widgets/forms.py
   branches/1.1/turbogears/widgets/forms.py

Modified: branches/1.0/turbogears/widgets/forms.py
==============================================================================
--- branches/1.0/turbogears/widgets/forms.py    (original)
+++ branches/1.0/turbogears/widgets/forms.py    Thu May  1 07:59:08 2008
@@ -685,7 +685,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="button"
-        name="${name}"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -710,7 +709,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="submit"
-        name="${name}"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -725,7 +723,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="reset"
-        name="$name"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -740,7 +737,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="image"
-        name="${name}"
         src="${src}"
         width="${width}"
         height="${height}"

Modified: branches/1.1/turbogears/widgets/forms.py
==============================================================================
--- branches/1.1/turbogears/widgets/forms.py    (original)
+++ branches/1.1/turbogears/widgets/forms.py    Thu May  1 07:59:08 2008
@@ -680,7 +680,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="button"
-        name="${name}"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -705,7 +704,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="submit"
-        name="${name}"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -720,7 +718,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="reset"
-        name="${name}"
         class="${field_class}"
         value="${value}"
         py:attrs="attrs"
@@ -735,7 +732,6 @@
     template = """
     <input xmlns:py="http://purl.org/kid/ns#";
         type="image"
-        name="${name}"
         src="${src}"
         width="${width}"
         height="${height}"

Reply via email to