Mercurial > libervia-backend
diff frontends/src/primitivus/profile_manager.py @ 1063:6ec513ad92c2
frontends: async failures are more detailed (full class name + error message)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Jun 2014 15:39:20 +0200 |
parents | 5197600a1e13 |
children | b29452cab50b |
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py Sat Jun 07 15:20:39 2014 +0200 +++ b/frontends/src/primitivus/profile_manager.py Sat Jun 07 15:39:20 2014 +0200 @@ -83,14 +83,12 @@ def _profileCreationFailure(self, reason): self.host.removePopUp() - if reason=="ConflictError": - message=_("A profile with this name already exists") - elif reason=="CancelError": - message=_("Profile creation cancelled by backend") - elif reason=="DATABASE": # FIXME: doesn't seem to exist ! - message=_("Database error") + if reason == "ConflictError": + message = _("A profile with this name already exists") + elif reason == "CancelError": + message = _("Profile creation cancelled by backend") else: - message=_("Unknown reason (%s)") % reason + message = _("Unknown reason (%s)") % reason popup = Alert(_("Can't create profile"), message, ok_cb=self.host.removePopUp) self.host.showPopUp(popup)