From 94dd79e0b8f895f54af7b7d3a76c65f341d5f117 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 2 Jan 2008 17:22:25 +0000 Subject: patch by Moritz Venn: allow plugins to provide a Wakeup-Time --- lib/python/Components/PluginComponent.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/python/Components') diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 590f428d..818ea583 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -116,4 +116,12 @@ class PluginComponent: def resetWarnings(self): self.warnings = [ ] + def getNextWakeupTime(self): + wakeup = -1 + for p in self.pluginList: + current = p.getWakeupTime() + if current > -1 and wakeup < current: + wakeup = current + return int(wakeup) + plugins = PluginComponent() -- cgit v1.2.3