aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/WebInterface
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-22 22:14:19 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-22 22:14:19 +0000
commit31fb73a15d12559b15f5506622c3902476d3ea0f (patch)
tree6f79a930ca7e4f16f5f5e84a3e5bd8fdfc0c5cf3 /lib/python/Plugins/Extensions/WebInterface
parent3613b3f0a365a6cfe83357754db892981c897bed (diff)
downloadenigma2-31fb73a15d12559b15f5506622c3902476d3ea0f.tar.gz
enigma2-31fb73a15d12559b15f5506622c3902476d3ea0f.zip
cleanup the plugins to fit the new namespace
Diffstat (limited to 'lib/python/Plugins/Extensions/WebInterface')
-rw-r--r--lib/python/Plugins/Extensions/WebInterface/Makefile.am7
-rw-r--r--lib/python/Plugins/Extensions/WebInterface/__init__.py0
-rw-r--r--lib/python/Plugins/Extensions/WebInterface/plugin.py19
3 files changed, 26 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/WebInterface/Makefile.am b/lib/python/Plugins/Extensions/WebInterface/Makefile.am
new file mode 100644
index 00000000..9b7bd296
--- /dev/null
+++ b/lib/python/Plugins/Extensions/WebInterface/Makefile.am
@@ -0,0 +1,7 @@
+installdir = $(LIBDIR)/enigma2/python/Plugins/WebInterface
+
+install_PYTHON = \
+ __init__.py \
+ plugin.py \
+ update.png
+ \ No newline at end of file
diff --git a/lib/python/Plugins/Extensions/WebInterface/__init__.py b/lib/python/Plugins/Extensions/WebInterface/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lib/python/Plugins/Extensions/WebInterface/__init__.py
diff --git a/lib/python/Plugins/Extensions/WebInterface/plugin.py b/lib/python/Plugins/Extensions/WebInterface/plugin.py
new file mode 100644
index 00000000..f0be4e45
--- /dev/null
+++ b/lib/python/Plugins/Extensions/WebInterface/plugin.py
@@ -0,0 +1,19 @@
+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):
+ 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)