Hello all. I'm trying to run a for loop in a template where each iteration
outputs some flickr photo info and form which would allow me to post the
photo to my blog. The issue seems to be that I can't populate the form with
the photo data. I'm doing something like the following in the template:
$def with (photoarray, form)
$for photo in photoarray:
Id: $photo.id
$form.get('id').value = $photo.id # <== this just renders html output
<form method="POST">
$:form.render()
</form>
What's the proper way to pass args to a form? Does it have to be done from
the main script itself and not from within a template?
Jim
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.