]>
jfr.im git - irc/quakenet/qwebirc.git/blob - qwebirc/root.py
1 from ajaxengine
import AJAXEngine
2 from authgateengine
import AuthgateEngine
4 from twisted
.web
import resource
, server
, static
6 class RootResource(resource
.Resource
):
7 def getChild(self
, name
, request
):
10 return self
.primaryChild
.getChild(name
, request
)
12 class RootSite(server
.Site
):
13 def __init__(self
, path
, *args
, **kwargs
):
15 server
.Site
.__init
__(self
, root
, *args
, **kwargs
)
17 root
.primaryChild
= static
.File(path
)
18 root
.putChild("e", AJAXEngine("/e"))
19 root
.putChild("auth", AuthgateEngine("/auth"))
21 mimetypes
.types_map
[".ico"] = "image/vnd.microsoft.icon"