git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ability to download e2-plugins via PluginBrowser
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index 91cb9f955287d63788f121bceb0b2f14aeee4e09..522b9b395e2d96c26c18c511cc5613089f232c69 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-22,14
+22,15
@@
InitFallbackFiles()
eDVBDB.getInstance().reloadBouquets()
try:
eDVBDB.getInstance().reloadBouquets()
try:
-
from twisted.internet
import e2reactor
+ import e2reactor
e2reactor.install()
from twisted.internet import reactor
def runReactor():
reactor.run()
e2reactor.install()
from twisted.internet import reactor
def runReactor():
reactor.run()
-except:
+except ImportError:
+ print "twisted not available"
def runReactor():
runMainloop()
def runReactor():
runMainloop()
@@
-41,6
+42,7
@@
from Screens.Wizard import wizardManager
from Screens.StartWizard import *
from Screens.TutorialWizard import *
from Tools.BoundFunction import boundFunction
from Screens.StartWizard import *
from Screens.TutorialWizard import *
from Tools.BoundFunction import boundFunction
+from Plugins.Plugin import PluginDescriptor
had = dict()
had = dict()
@@
-269,12
+271,19
@@
def runScreenTest():
session.nav = Navigation()
session.nav = Navigation()
- screensToRun = wizardManager.getWizards()
+ screensToRun = [ ]
+
+ for p in plugins.getPlugins(PluginDescriptor.WHERE_WIZARD):
+ screensToRun.append(p.__call__)
+
+ screensToRun += wizardManager.getWizards()
+
screensToRun.append(Screens.InfoBar.InfoBar)
def runNextScreen(session, screensToRun, *result):
if result:
screensToRun.append(Screens.InfoBar.InfoBar)
def runNextScreen(session, screensToRun, *result):
if result:
- quitMainloop(result)
+ quitMainloop(*result)
+ return
screen = screensToRun[0]
screen = screensToRun[0]