changeset 179:90b2545f7459

This fixes the director exception when running a command in the console.
author Beliar <KarstenBock@gmx.net>
date Wed, 07 Mar 2012 20:04:48 +0100
parents c706963ed0c3
children 0d0422243490
files common/listeners/event_listener.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common/listeners/event_listener.py	Tue Mar 06 15:39:14 2012 +0100
+++ b/common/listeners/event_listener.py	Wed Mar 07 20:04:48 2012 +0100
@@ -132,8 +132,10 @@
 
     def onConsoleCommand(self, command):
         """Called when a console command is executed"""
+        results = []
         for listener in self.listeners["ConsoleCommand"]:
-            listener.onConsoleCommand(command)
+            results.append(listener.onConsoleCommand(command))
+        return "\n".join(results)
 
     def onWidgetAction(self, evt):
         """Called when a widget action is executed"""