Module: deluge Branch: master Commit: 23f64a54407225d7878be4dc143639452df8122c
Author: Nick <[email protected]> Date: Mon Feb 14 12:25:04 2011 +0100 add back write method and keep track of events for (future) event view --- deluge/ui/console/main.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index bd2f8c6..cb252d3 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) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
