git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
link correct url for web interface sample
[enigma2.git]
/
lib
/
python
/
Plugins
/
Extensions
/
WebInterface
/
plugin.py
diff --git
a/lib/python/Plugins/Extensions/WebInterface/plugin.py
b/lib/python/Plugins/Extensions/WebInterface/plugin.py
index cc9a546b93ec927d70f148f634ff0a12a8190c1e..71c4afccd6f3396dedff09cb8adea5781b17298f 100644
(file)
--- a/
lib/python/Plugins/Extensions/WebInterface/plugin.py
+++ b/
lib/python/Plugins/Extensions/WebInterface/plugin.py
@@
-34,7
+34,7
@@
def startWebserver():
def render(self, req):
return http.Response(responsecode.OK, {'Content-type': http_headers.MimeType('text', 'html')},
def render(self, req):
return http.Response(responsecode.OK, {'Content-type': http_headers.MimeType('text', 'html')},
- stream='Hello! you want probably go to <a href="/
test
">the test</a> instead.')
+ stream='Hello! you want probably go to <a href="/
web
">the test</a> instead.')
child_web = ScreenPage("/") # "/web"
child_hdd = static.File("/hdd")
child_web = ScreenPage("/") # "/web"
child_hdd = static.File("/hdd")
@@
-51,10
+51,10
@@
def autostart(reason, **kwargs):
return
if reason == 0:
return
if reason == 0:
- try:
+
#
try:
startWebserver()
startWebserver()
- except ImportError:
-
print "twisted not available, not starting web services"
+
#
except ImportError:
+
#
print "twisted not available, not starting web services"
def Plugins(**kwargs):
return PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart)
def Plugins(**kwargs):
return PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart)