[kupfer: 40/51] commandexec: Fix error in register_late_result
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 40/51] commandexec: Fix error in register_late_result
- Date: Mon, 28 Mar 2011 15:04:26 +0000 (UTC)
commit 3fdb6deb5b8b318e3c76b460eae0f6772174d42d
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Mar 28 16:51:48 2011 +0200
commandexec: Fix error in register_late_result
kupfer/core/commandexec.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/core/commandexec.py b/kupfer/core/commandexec.py
index f181dad..069d111 100644
--- a/kupfer/core/commandexec.py
+++ b/kupfer/core/commandexec.py
@@ -145,7 +145,8 @@ class ExecutionToken (object):
self._ui_ctx = ui_ctx
def register_late_result(self, result_object, show=True):
- self._aectx.register_late_result(self._token, result_object, show=show)
+ self._aectx.register_late_result(self._token, result_object, show=show,
+ ctxenv=self._ui_ctx)
def register_late_error(self, exc_info=None):
self._aectx.register_late_error(self._token, exc_info)
@@ -247,7 +248,7 @@ class ActionExecutionContext (gobject.GObject, pretty.OutputMixin):
command_id, cmdtuple = token
self._do_error_conversion(cmdtuple, exc_info)
- def register_late_result(self, token, result, show=True):
+ def register_late_result(self, token, result, show=True, ctxenv=None):
"""Register a late result
Result must be a Leaf (as in result object, not factory or async)
@@ -271,7 +272,7 @@ class ActionExecutionContext (gobject.GObject, pretty.OutputMixin):
if not show:
command_id = -1
self.emit("late-command-result", command_id, RESULT_OBJECT, result,
- token.environment)
+ ctxenv)
self._append_result(RESULT_OBJECT, result)
def _append_result(self, res_type, result):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]