this is annoying.

lets say that you have mutiple submit buttons:

  input type="submit" name="action" value="do_this"
  input type="submit" name="action" value="do_that"

if formencode/validate catches an error on the form, all "action" will
become the clicked value.

htmlfill.render should ignore type="submit" buttons by default, or at
least give that option

there's absolutely no reason to force a render of a form that
collapses mutiple options into one.  all other form fields are
editable.

formencode htmlfill.py
398-403
        elif t == 'submit' or t == 'reset' or t == 'button':
            self.set_attr(attrs, 'value', value or
                          self.get_attr(attrs, 'value', ''))
            self.write_tag('input', attrs, startend)
            self.skip_next = True
            self.add_key(name)

should be
        elif t == 'submit' or t == 'reset' or t == 'button':
            pass

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to