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