git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugin api change: Plugins() and main functions must receive (and possibly ignore...
[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 f0be4e453a6ce7f08138715276d8e980a57550af..0f7e2bbd25ffd653ba47404fb428a82ce8cccb65 100644
(file)
--- a/
lib/python/Plugins/Extensions/WebInterface/plugin.py
+++ b/
lib/python/Plugins/Extensions/WebInterface/plugin.py
@@
-8,12
+8,12
@@
def startWebserver():
reactor.listenTCP(80, http.HTTPFactory(site))
reactor.listenTCP(80, http.HTTPFactory(site))
-def autostart(reason):
+def autostart(reason
, **kwargs
):
if reason == 0:
try:
startWebserver()
except ImportError:
print "twisted not available, not starting web services"
if reason == 0:
try:
startWebserver()
except ImportError:
print "twisted not available, not starting web services"
-def Plugins():
+def Plugins(
**kwargs
):
return PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart)
return PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart)