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()
I ran mktap web --path ~/twistedScripts --port 9000 as root in the /home/admin/TwistedScripts directory. I then placed myFirst.rpy in the /root/twistedScripts directory
For some reason I get the following error, which you can see yourself at http://www.jonathanmark.com:9000/myFirst.rpy
"Method Not Allowed Your browser approached me (at /myFirst.rpy) with the method "GET". I only allow the method GET here."
A search of the web indicates that adding allowedMethods = ('GET',) was supposed to fix this problem, only it doesn't.
Any help would be appreciated.
Jonathan Mark GoodbyeJim.com
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com