Hi,

to be honest, I can't see at the moment why this isn't working.
Maybe you want to try using this:

greeting.content = self.request.POST['content']

Your version should work just as well, though:

greeting.content = self.request.get('content')

No idea why it works on your localhost, and not when deployed...

Not much help, but I tried! ;)

Best Regards,

Jesaja Everling


On Sat, Dec 6, 2008 at 10:51 AM, flu xius <[EMAIL PROTECTED]> wrote:
> This is the code HTML to submit a form in MainPage Class :
> self.response.out.write("""
>           <form action="/sign" method="post">
>             <div><textarea name="content" rows="3"
> cols="60"></textarea></div>
>             <div><input type="submit" value="Sign Guestbook"></div>
>           </form>
>         </body>
>       </html>""")
>
>
>
> And that's my other class Guestbook which take values and use the model to
> insert data :
> class Guestbook(webapp.RequestHandler):
>   def post(self):
>     greeting = Greeting2()
>
>     if users.get_current_user():
>       greeting.author = users.get_current_user()
>
>     greeting.content = self.request.get('content')
>     greeting.put()
>     self.redirect('/')
> ------------
>
> This project work perfecly in localhost, the method post should be taked by
> the webapp callback
>
> application = webapp.WSGIApplication(
>                                      [('/', MainPage),
>                                       ('/logout', Logout),
>                                      ('/login', Login),
>                                       ('/sign', Guestbook)],
>                                      debug=True)
>
>
> Thanx for help ! :)
>
> On Sat, Dec 6, 2008 at 4:37 AM, kang <[EMAIL PROTECTED]> wrote:
>>
>> your code?
>>
>> On Sat, Dec 6, 2008 at 5:12 AM, SebastienDudek <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi !
>>>
>>> I started a new application inside Google Engine :
>>> http://fluxius.appspot.com/
>>>
>>> This application is a part of guestbook in documentations. Problem is
>>> than I can submit by get methods but with post methods I have this
>>> error :
>>>
>>> Error: Method Not Allowed
>>> The request method GET is inappropriate for the URL /sign.
>>>
>>>
>>> To See whats the problem, I used get after the post method and I saw
>>> than on "/sign" url, get is only used.
>>>
>>> P.S : This project works on localhost ^^!
>>>
>>>
>>
>>
>>
>> --
>> Stay hungry,Stay foolish.
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to