aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/web
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-01-13 02:11:07 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-01-13 02:11:07 +0000
commit11ea75ea8a760d6043e4472b28372741faea6197 (patch)
treec4e856faa472fd7972ac8acdbf009d394e41c0ce /lib/python/Plugins/web
parent8cdc19061d56d649b298462f7e64283551d0bbf9 (diff)
downloadenigma2-11ea75ea8a760d6043e4472b28372741faea6197.tar.gz
enigma2-11ea75ea8a760d6043e4472b28372741faea6197.zip
twisted demo: simple webserver
Diffstat (limited to 'lib/python/Plugins/web')
-rw-r--r--lib/python/Plugins/web/Makefile.am0
-rw-r--r--lib/python/Plugins/web/__init__.py0
-rw-r--r--lib/python/Plugins/web/plugin.py24
-rw-r--r--lib/python/Plugins/web/update.png0
4 files changed, 24 insertions, 0 deletions
diff --git a/lib/python/Plugins/web/Makefile.am b/lib/python/Plugins/web/Makefile.am
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lib/python/Plugins/web/Makefile.am
diff --git a/lib/python/Plugins/web/__init__.py b/lib/python/Plugins/web/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lib/python/Plugins/web/__init__.py
diff --git a/lib/python/Plugins/web/plugin.py b/lib/python/Plugins/web/plugin.py
new file mode 100644
index 00000000..bdcbd058
--- /dev/null
+++ b/lib/python/Plugins/web/plugin.py
@@ -0,0 +1,24 @@
+from enigma import *
+
+from twisted.internet import reactor
+from twisted.web2 import server, http, static
+
+def autostart():
+ print "Web startup"
+ # For example, serve the /tmp directory
+ toplevel = static.File("/tmp")
+ site = server.Site(toplevel)
+
+ reactor.listenTCP(8080, http.HTTPFactory(site))
+
+def autoend():
+ pass
+
+def getPicturePaths():
+ return []
+
+def getPlugins():
+ return []
+
+def getMenuRegistrationList():
+ return []
diff --git a/lib/python/Plugins/web/update.png b/lib/python/Plugins/web/update.png
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lib/python/Plugins/web/update.png