X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/aa4989974a32ab2437d51fb6352b3eb54cecd83d..c08f4bf8728fe649704471ff1ef168d38f5f0b89:/lib/python/Plugins/Extensions/WebInterface/plugin.py diff --git a/lib/python/Plugins/Extensions/WebInterface/plugin.py b/lib/python/Plugins/Extensions/WebInterface/plugin.py index 0f7e2bbd..e69de29b 100644 --- a/lib/python/Plugins/Extensions/WebInterface/plugin.py +++ b/lib/python/Plugins/Extensions/WebInterface/plugin.py @@ -1,19 +0,0 @@ -from Plugins.Plugin import PluginDescriptor - -def startWebserver(): - from twisted.internet import reactor - from twisted.web2 import server, http, static - toplevel = static.File("/hdd") - site = server.Site(toplevel) - - reactor.listenTCP(80, http.HTTPFactory(site)) - -def autostart(reason, **kwargs): - if reason == 0: - try: - startWebserver() - except ImportError: - print "twisted not available, not starting web services" - -def Plugins(**kwargs): - return PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart)