2011/3/3 Jim <the...@chaj.com> > Thanks Aydin, > > Is there any way I can do it from my template as I described in my pseudo > code? > > As i know you can not directly assign value of form field in template. You can use form.fill(args) in template also but it is important that you have to assign all values of fields (in args) otherwise they will be assigned empty values.
For example you can use like that: $def with (photoarray, form) > $for photo in photoarray: > $ d = {} > $for k in form.inputs: > $d[k.name] = k.value > $d["id"] = photo.id > $form.fill(d) > <form method="post"> > $:form.render() > </form> -- Aydın Şen -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.