On 27 Feb, 17:20, Marco Mariani <[EMAIL PROTECTED]> wrote:
> Mikael Jansson wrote:
> > I've got an exposed method that gets called with /do?id=N (def do()),
> > that displays a form and posts it to /action (@error_handler(do) def
> > action()).
>
> > Problem is that I want to pass on the ID parameter to the 'action'
> > method. How do I do that the most convenient way?
>
> addform = TableForm(fields=FooFields(), ...)
>
> editform = TableForm(fields=FooFields()+[ HiddenField('id_foo') ], ...)
>
Thanks! That's what I ended up doing. I didn't realize that WidgetList
is a list.
-- Mikael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---