It's not the solution, but did you try to find out who is sending you data to your post? def POST(self, *args, **kw): print "wrong args: ", args, kw
On 15 Feb, 14:53, 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.
