From 23f64a54407225d7878be4dc143639452df8122c Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 14 Feb 2011 12:25:04 +0100 Subject: [PATCH] add back write method and keep track of events for (future) event view --- deluge/ui/console/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index bd2f8c657..cb252d3fb 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -92,6 +92,9 @@ class ConsoleUI(component.Component): def __init__(self, args=None): component.Component.__init__(self, "ConsoleUI", 2) + # keep track of events for the log view + self.events = [] + try: locale.setlocale(locale.LC_ALL, '') self.encoding = locale.getpreferredencoding() @@ -160,3 +163,6 @@ class ConsoleUI(component.Component): def on_client_disconnect(self): component.stop() + + def write(self, s): + self.events.append(s)