Mercurial > libervia-backend
comparison frontends/src/primitivus/profile_manager.py @ 893:308a96bc7c1b
core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 03 Mar 2014 09:59:10 +0100 |
parents | 1fe00f0c9a91 |
children | 73a0b7f94674 |
comparison
equal
deleted
inserted
replaced
892:58107179cd97 | 893:308a96bc7c1b |
---|---|
90 self.host.showPopUp(popup) | 90 self.host.showPopUp(popup) |
91 | 91 |
92 def deleteProfile(self, button): | 92 def deleteProfile(self, button): |
93 profile_name = self.list_profile.getSelectedValue() | 93 profile_name = self.list_profile.getSelectedValue() |
94 if profile_name: | 94 if profile_name: |
95 self.host.bridge.deleteProfile(profile_name) | 95 self.host.bridge.asyncDeleteProfile(profile_name, callback=self.__refillProfiles) |
96 self.__refillProfiles() | |
97 self.host.removePopUp() | 96 self.host.removePopUp() |
98 | 97 |
99 def onNewProfile(self, e): | 98 def onNewProfile(self, e): |
100 pop_up_widget = InputDialog(_("New profile"), _("Please enter a new profile name"), cancel_cb=self.cancelDialog, ok_cb=self.newProfile) | 99 pop_up_widget = InputDialog(_("New profile"), _("Please enter a new profile name"), cancel_cb=self.cancelDialog, ok_cb=self.newProfile) |
101 self.host.showPopUp(pop_up_widget) | 100 self.host.showPopUp(pop_up_widget) |