diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-01-13 02:11:07 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-01-13 02:11:07 +0000 |
| commit | 11ea75ea8a760d6043e4472b28372741faea6197 (patch) | |
| tree | c4e856faa472fd7972ac8acdbf009d394e41c0ce /lib | |
| parent | 8cdc19061d56d649b298462f7e64283551d0bbf9 (diff) | |
| download | enigma2-11ea75ea8a760d6043e4472b28372741faea6197.tar.gz enigma2-11ea75ea8a760d6043e4472b28372741faea6197.zip | |
twisted demo: simple webserver
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Plugins/web/Makefile.am | 0 | ||||
| -rw-r--r-- | lib/python/Plugins/web/__init__.py | 0 | ||||
| -rw-r--r-- | lib/python/Plugins/web/plugin.py | 24 | ||||
| -rw-r--r-- | lib/python/Plugins/web/update.png | 0 |
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 |
