# start as wizard. In that case, fnc must be a screen class!
WHERE_WIZARD = 6
+ # like autostart, but for a session. currently, only session starts are
+ # delivered, and only on pre-loaded plugins
+ WHERE_SESSIONSTART = 7
+
def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None):
self.name = name
if type(where) is list:
self.dialog_stack = [ ]
self.summary_stack = [ ]
self.summary = None
+
+ for p in plugins.getPlugins(PluginDescriptor.WHERE_SESSIONSTART):
+ p(reason=0, session=self)
def processDelay(self):
self.execEnd()
self.muteDialog.hide()
def runScreenTest():
- session = Session(desktop = getDesktop(0), summary_desktop = getDesktop(1), navigation = Navigation())
-
plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
+
+ session = Session(desktop = getDesktop(0), summary_desktop = getDesktop(1), navigation = Navigation())
screensToRun = [ ]