Cecil Westerhof schrieb:
> When I look at the source of the generated page, I see that
> #${data}#${data['authorID']}#
> is expanded to
> #authorID#1#
>
> But the hidden field becomes:
> <input class="hiddenfield" type="hidden" id="form_author" name="author">
I think the problem is that you named your hidden field "author" instead
of "authorID".
> The code should become something like:
> author = widgets.HiddenField(default = <value>)
You won't need a default parameter if you already set value correctly.
However, setting a user id to the currently logged in user is a good
example where having callables for the default argument makes sense, as
I recently suggested on the list.
-- Christoph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---