1 from Plugins.Plugin import PluginDescriptor
4 from twisted.internet import reactor
5 from twisted.web2 import server, http, static
6 toplevel = static.File("/hdd")
7 site = server.Site(toplevel)
9 reactor.listenTCP(80, http.HTTPFactory(site))
11 def autostart(reason, **kwargs):
16 print "twisted not available, not starting web services"
18 def Plugins(**kwargs):
19 return PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart)