Yes,it is exactly the problem,I wrote
Thanks  a lot!

在 2011年2月16日 上午4:36,Justin Davis <[email protected]>写道:

> What are the urls for your application? It looks like you have
> something like this:
>
> urls = ('/edit/(.*)', 'EditHandler')
>
> or something with grouping in the url. You'll need to have POST accept
> the grouped arg, like:
>
> def POST(self, id):
>
>
>
> On Feb 15, 5:53 am, Smile <[email protected]> wrote:
> > Help!!!:About webpy'POST issue
> > I want to write a guestbook,but when I  submit the form,It shows:
> >
> > <type 'exceptions.TypeError'> at /
> > POST() takes exactly 1 argument (2 given)
> >
> > Here is how I set the form
> > myform = form.Form(
> >
> >
>  form.Textarea('message',form.notnull,rows=8,cols=80,description="你想说神马?"),
> >     form.Radio('name',['GoodPerson','BadMan']),
> >     form.Button('Post entry',type="submit"),
> > )
> > Here is the code to handle POST
> >     def POST(self):
> >         i = myform()
> >         if not i.validates():
> >             raise web.seeother('/')
> >         db.insert('love',message=i.d.message,author=i.d.name
> > ,time=datetime.datetime.now)
> >         raise web.seeother('/')
> > who can tell me ,where I did wrong?
> > and I am from China,maybe I  didn't express smoothly
> > Wish you can help me
> >
> > --
> > yours,Lerry
>
> --
> 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.
>
>


-- 
yours,Lerry

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