]>
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
):
6 def getChild(self
, name
, request
):
9 return self
.primaryChild
.getChild(name
, request
)
11 class RootSite(server
.Site
):
12 def __init__(self
, path
, *args
, **kwargs
):
14 server
.Site
.__init
__(self
, root
, *args
, **kwargs
)
16 root
.primaryChild
= static
.File(path
)
17 root
.putChild("e", AJAXEngine("/e"))