-from ajaxengine import AJAXEngine\r
-\r
-from twisted.web import resource, server, static\r
-\r
-class RootResource(resource.Resource):\r
- isLeaf = True\r
- def render_GET(self, request):\r
- return "moo"\r
- \r
-class RootSite(server.Site):\r
- def __init__(self, path, *args, **kwargs):\r
- root = resource.Resource()\r
- server.Site.__init__(self, root, *args, **kwargs)\r
- \r
- root.putChild("", RootResource())\r
- root.putChild("static", static.File(path))\r
+from ajaxengine import AJAXEngine
+
+from twisted.web import resource, server, static
+
+class RootResource(resource.Resource):
+ isLeaf = True
+ def render_GET(self, request):
+ return "moo"
+
+class RootSite(server.Site):
+ def __init__(self, path, *args, **kwargs):
+ root = resource.Resource()
+ server.Site.__init__(self, root, *args, **kwargs)
+
+ root.putChild("", RootResource())
+ root.putChild("e", AJAXEngine("/e"))
+ root.putChild("static", static.File(path))