work on web interface
[enigma2.git] / lib / python / Plugins / Extensions / WebInterface / plugin.py
index 0f7e2bbd25ffd653ba47404fb428a82ce8cccb65..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -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)