Sending Get to Resource Produces Nonsensical Error Message
My rpy script that instantiates a resource produces the following error message when I call it within a form: Method Not AllowedYour browser approached me (at /myFirst.rpy?sa=Search&domains=ahfb2000.com&q=hello) with the method "GET". I only allow the method GET here. Since the message recognizes that it is being sent a GET, why does it tell me that it only allows a GET? Here is the resource: from twisted.web.resource import Resource class MyResource(Resource): isLeaf = True allowedMethods = ('GET',) def render_GET(self, request): return "<html>Hello, world!</html>" resource = MyResource() __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (1)
-
Jonathan Mark