Commits

Oscar Campos committed 8b61b5c

Webservice conversion to RPY

  • Participants
  • Parent commits 35d4b6d

Comments (0)

Files changed (1)

-# -*- encode: utf-8 -*-
-#!/usr/bin/env python
-
 from twisted.web import server, resource
-from twisted.internet import reactor
 
 class HelloResource(resource.Resource):
     isLeaf = True
         request.setHeader("content-type", "text/plain")
         return "I am request #" + str(self.numberRequests) + "\n"
 
-reactor.listenTCP(8080, server.Site(HelloResource()))
-reactor.run()
+resource = HelloResource()