]> jfr.im git - irc/quakenet/qwebirc.git/blob - qwebirc/root.py
Now works.
[irc/quakenet/qwebirc.git] / qwebirc / root.py
1 from ajaxengine import AJAXEngine
2
3 from twisted.web import resource, server, static
4
5 class RootResource(resource.Resource):
6 isLeaf = True
7 def render_GET(self, request):
8 return "moo"
9
10 class RootSite(server.Site):
11 def __init__(self, path, *args, **kwargs):
12 root = resource.Resource()
13 server.Site.__init__(self, root, *args, **kwargs)
14
15 root.putChild("", RootResource())
16 root.putChild("static", static.File(path))