On Tue, 2009-06-30 at 11:50 -0700, Trilok wrote:
> Hi,
>  I can't find any documentation on what web.form.Form.fill() does.
> Does it set the value of a particular form given a source? An example
> would be really helpful.

You can use web.input() to fill the form. Here's how I used it in my
blog app:

    def POST(self):
        new_post_form.fill(web.input())

web.input() returns a storage object (I'm still a bit unclear as to how
that works), which looks like a dictionary, and contains the post/get
parameters. Search for string "storify" on this page:

http://webpy.org/docs/0.3/api


Best regards,


-- 
Branko

eml: [email protected]
alt: [email protected]
blg1: http://sudologic.blogspot.com/
blg2: http://brankovukelic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to