diff options
author | kali <kali@leap.se> | 2012-12-04 05:17:24 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-12-12 04:27:50 +0900 |
commit | 01116d8725eaa74f8f3581248198b5d0ec1577dd (patch) | |
tree | 8e436241719b3df42aee371f94c3084fec16d119 /src/leap/gui/progress.py | |
parent | ff6d4b8633edc763f22489030766a6c7a9377693 (diff) |
completed tests for gui/progress
Diffstat (limited to 'src/leap/gui/progress.py')
-rw-r--r-- | src/leap/gui/progress.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/gui/progress.py b/src/leap/gui/progress.py index e68c35d2..f0bb4cfc 100644 --- a/src/leap/gui/progress.py +++ b/src/leap/gui/progress.py @@ -264,7 +264,6 @@ class WithStepsMixIn(object): parent = self else: parent = None - import ipdb;ipdb.set_trace() self.stepsTableWidget = StepsTableWidget(parent=parent) zeros = (0, 0, 0, 0) self.stepsTableWidget.setContentsMargins(*zeros) @@ -274,15 +273,17 @@ class WithStepsMixIn(object): self.errors[name] = error def pop_first_error(self): - return list(reversed(self.errors.items())).pop() + errkey, errval = list(reversed(self.errors.items())).pop() + del self.errors[errkey] + return errkey, errval def clean_errors(self): self.errors = OrderedDict() def clean_wizard_errors(self, pagename=None): - if pagename is None: + if pagename is None: # pragma: no cover pagename = getattr(self, 'prev_page', None) - if pagename is None: + if pagename is None: # pragma: no cover return logger.debug('cleaning wizard errors for %s' % pagename) self.wizard().set_validation_error(pagename, None) |