]>
Commit | Line | Data |
---|---|---|
d4e3371b CP |
1 | from ajaxengine import AJAXEngine\r |
2 | \r | |
3 | from twisted.web import resource, server, static\r | |
4 | \r | |
e1b81267 CP |
5 | class RootResource(resource.Resource):\r |
6 | isLeaf = True\r | |
d4e3371b | 7 | def render_GET(self, request):\r |
e1b81267 CP |
8 | return "moo"\r |
9 | \r | |
10 | class RootSite(server.Site):\r | |
11 | def __init__(self, path, *args, **kwargs):\r | |
12 | root = resource.Resource()\r | |
13 | server.Site.__init__(self, root, *args, **kwargs)\r | |
14 | \r | |
15 | root.putChild("", RootResource())\r | |
16 | root.putChild("static", static.File(path))\r |