diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 73b2c80..6ebb257 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -432,6 +432,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): pass def on_domain_added(self, submitter, event, **kwargs): + # pylint: disable=unused-argument self.table.setSortingEnabled(False) @@ -450,6 +451,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): raise RuntimeError('Added domain not found') def on_domain_removed(self, submitter, event, **kwargs): + # pylint: disable=unused-argument row_to_delete = None qid_to_delete = None @@ -464,6 +466,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): self.table.removeRow(row_to_delete.name_widget.row()) def on_domain_status_changed(self, vm, event, **kwargs): + # pylint: disable=unused-argument + self.vms_in_table[vm.qid].info_widget.update_vm_state() if vm == self.get_selected_vm(): @@ -475,6 +479,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): row.info_widget.update_vm_state() def on_domain_changed(self, vm, event, **kwargs): + # pylint: disable=unused-argument + self.vms_in_table[vm.qid].update() def load_manager_settings(self): @@ -1336,11 +1342,11 @@ def main(): manager_window.show() try: - done, _ = loop.run_until_complete( + loop.run_until_complete( asyncio.ensure_future(dispatcher.listen_for_events())) except asyncio.CancelledError: pass - except Exception: + except Exception: # pylint: disable=broad-except loop_shutdown() exc_type, exc_value, exc_traceback = sys.exc_info()[:3] handle_exception(exc_type, exc_value, exc_traceback) diff --git a/test-packages/quamash/__init__.py b/test-packages/quamash/__init__.py new file mode 100644 index 0000000..fc80254 --- /dev/null +++ b/test-packages/quamash/__init__.py @@ -0,0 +1 @@ +pass \ No newline at end of file diff --git a/test-packages/qubesadmin/events.py b/test-packages/qubesadmin/events.py index 68c1b58..e34a536 100644 --- a/test-packages/qubesadmin/events.py +++ b/test-packages/qubesadmin/events.py @@ -2,4 +2,6 @@ class EventsDispatcher(object): def add_handler(self, *args): pass - pass + + def listen_for_events(self, *args): + pass