diff frontends/src/jp/cmd_profile.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 c39117d00f35
children d87aa6bdb0b4
line wrap: on
line diff
--- a/frontends/src/jp/cmd_profile.py	Fri Feb 28 11:19:08 2014 +0100
+++ b/frontends/src/jp/cmd_profile.py	Mon Mar 03 09:59:10 2014 +0100
@@ -42,7 +42,7 @@
         if self.args.profile not in self.host.bridge.getProfilesList():
             error("Profile %s doesn't exist." % self.args.profile)
             self.host.quit(1)
-        self.host.bridge.deleteProfile(self.args.profile)
+        self.host.bridge.asyncDeleteProfile(self.args.profile, callback=lambda dummy: None)
 
 
 class ProfileInfo(base.CommandBase):