]>
jfr.im git - irc/quakenet/qwebirc.git/blob - qwebirc/root.py
1 from ajaxengine
import AJAXEngine
3 from twisted
.web
import resource
, server
, static
5 class RootResource(resource
.Resource
):
7 def render_GET(self
, request
):
10 class RootSite(server
.Site
):
11 def __init__(self
, path
, *args
, **kwargs
):
12 root
= resource
.Resource()
13 server
.Site
.__init
__(self
, root
, *args
, **kwargs
)
15 root
.putChild("", RootResource())
16 root
.putChild("e", AJAXEngine("/e"))
17 root
.putChild("static", static
.File(path
))