From b8f1bbd3de314815467ab19a55630d71283a42cb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 13 Apr 2013 13:41:59 -0400 Subject: [PATCH] asyncjob: Rename function that collides with gtk method --- virtManager/asyncjob.py | 4 ++-- virtManager/packageutils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/virtManager/asyncjob.py b/virtManager/asyncjob.py index 479431fab..71c20b897 100644 --- a/virtManager/asyncjob.py +++ b/virtManager/asyncjob.py @@ -212,9 +212,9 @@ class vmmAsyncJob(vmmGObjectUI): return (None, None) return self._error_info - def set_data(self, data): + def set_extra_data(self, data): self._data = data - def get_data(self): + def get_extra_data(self): return self._data def get_meter(self): diff --git a/virtManager/packageutils.py b/virtManager/packageutils.py index 149b8c37e..910459511 100644 --- a/virtManager/packageutils.py +++ b/virtManager/packageutils.py @@ -68,7 +68,7 @@ def check_packagekit(errbox, packages, ishv): if error: return - found = progWin.get_data() + found = progWin.get_extra_data() not_found = [x for x in packages if x not in found] logging.debug("Missing packages: %s", not_found) @@ -120,7 +120,7 @@ def _do_async_search(asyncjob, session, pk_control, packages): logging.exception("Error searching for installed packages") asyncjob.set_error(str(e), "".join(traceback.format_exc())) - asyncjob.set_data(found) + asyncjob.set_extra_data(found) def packagekit_install(package_list): session = dbus.SessionBus()