Hello again,

On 9/20/06, Daniel Lyons <[EMAIL PROTECTED]> wrote:
I've gone through the FormBuild tutorial and I've got a few questions
about it.

Firstly, the submit button doesn't seem to respect the
"params={'value': 'Submit'}" bit. Which is strange, because everything
else seems to work, and I think the getattr(c.form.field, ...) line is
a really excellent hack.

I figured this one out. Something between

  c.form.layout.field(..., params={'value': 'Submit'})

and

  <% getattr(..., **ARGS.get('params', {})) %>

is swallowing the 'params' key. I renamed it to 'parameters' in both the field_layout.myc and form.myt and now it works. Not sure what's causing the problem though.

--
Daniel
http://www.storytotell.org -- Tell It!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to