From 8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 14 Feb 2008 20:40:05 +0000 Subject: unlink some cyclic dependencys to get garbage collection working --- lib/python/Components/Sources/Boolean.py | 2 +- lib/python/Components/Sources/Clock.py | 2 +- lib/python/Components/Sources/FrontendStatus.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/python/Components/Sources') diff --git a/lib/python/Components/Sources/Boolean.py b/lib/python/Components/Sources/Boolean.py index 97b92bc6..f2526a45 100644 --- a/lib/python/Components/Sources/Boolean.py +++ b/lib/python/Components/Sources/Boolean.py @@ -35,4 +35,4 @@ class Boolean(Source, object): def destroy(self): if self.poll_timer: - self.poll_timer.timeout.get().remove(self.poll) + self.poll_timer.callback.remove(self.poll) diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index 60fa7ac2..5130b21d 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -28,4 +28,4 @@ class Clock(Source): self.poll() def destroy(self): - self.clock_timer.timeout.get().remove(self.poll) + self.clock_timer.callback.remove(self.poll) diff --git a/lib/python/Components/Sources/FrontendStatus.py b/lib/python/Components/Sources/FrontendStatus.py index 141bd8a4..8e29030a 100644 --- a/lib/python/Components/Sources/FrontendStatus.py +++ b/lib/python/Components/Sources/FrontendStatus.py @@ -48,5 +48,5 @@ class FrontendStatus(Source): self.poll_timer.start(self.update_interval) def destroy(self): - self.poll_timer.timeout.get().remove(self.updateFrontendStatus) + self.poll_timer.callback.remove(self.updateFrontendStatus) -- cgit v1.2.3