aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/web/plugin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-20 15:52:00 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-20 15:52:00 +0000
commite96bceea2ffea0f73e037eb43f5dcd1802044cfb (patch)
tree6c99f9dc99e97db13cc1d88473ac5a60e81989f3 /lib/python/Plugins/web/plugin.py
parentd66a85b467e8e5844603272cf34657a10461b984 (diff)
downloadenigma2-e96bceea2ffea0f73e037eb43f5dcd1802044cfb.tar.gz
enigma2-e96bceea2ffea0f73e037eb43f5dcd1802044cfb.zip
fix
Diffstat (limited to 'lib/python/Plugins/web/plugin.py')
-rw-r--r--lib/python/Plugins/web/plugin.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/python/Plugins/web/plugin.py b/lib/python/Plugins/web/plugin.py
index 7fce3789..e69de29b 100644
--- a/lib/python/Plugins/web/plugin.py
+++ b/lib/python/Plugins/web/plugin.py
@@ -1,19 +0,0 @@
-
-def startWebserver():
- from twisted.internet import reactor
- from twisted.web2 import server, http, static
- from Plugins.Plugin import PluginDescriptor
- toplevel = static.File("/hdd")
- site = server.Site(toplevel)
-
- reactor.listenTCP(80, http.HTTPFactory(site))
-
-def autostart(reason):
- if reason == 0:
- try:
- startWebserver()
- except ImportError:
- print "twisted not available, not starting web services"
-
-def Plugins():
- return PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart)