[Twisted-web] [Twisted-Python]How to display python script output and php path

Mike Pelletier mike at mkp.ca
Sat Apr 8 07:50:07 CDT 2006


On Wednesday 05 April 2006 09:54, Normand Savard wrote:
> Example of script:
>
> #!/usr/bin/env python
>
> print 'Allo'

I think this should be:

---
from twisted.web import resource

class AlloResource(resource.Resource):
    def render(self, request):
        return "Allo"

resource = AlloResource()
---

Mike.



More information about the Twisted-web mailing list