comparison src/core/sat_main.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 c2f6ada7858f
children fab49a1d5ea2
comparison
equal deleted inserted replaced
892:58107179cd97 893:308a96bc7c1b
132 sys.exit(1) 132 sys.exit(1)
133 self.bridge.register("getVersion", lambda: self.getConst('client_version')) 133 self.bridge.register("getVersion", lambda: self.getConst('client_version'))
134 self.bridge.register("getProfileName", self.memory.getProfileName) 134 self.bridge.register("getProfileName", self.memory.getProfileName)
135 self.bridge.register("getProfilesList", self.memory.getProfilesList) 135 self.bridge.register("getProfilesList", self.memory.getProfilesList)
136 self.bridge.register("getEntityData", lambda _jid, keys, profile: self.memory.getEntityData(jid.JID(_jid), keys, profile)) 136 self.bridge.register("getEntityData", lambda _jid, keys, profile: self.memory.getEntityData(jid.JID(_jid), keys, profile))
137 self.bridge.register("createProfile", self.memory.createProfile)
138 self.bridge.register("asyncCreateProfile", self.memory.asyncCreateProfile) 137 self.bridge.register("asyncCreateProfile", self.memory.asyncCreateProfile)
139 self.bridge.register("deleteProfile", self.memory.deleteProfile) 138 self.bridge.register("asyncDeleteProfile", self.memory.asyncDeleteProfile)
140 self.bridge.register("registerNewAccount", self.registerNewAccount) 139 self.bridge.register("registerNewAccount", self.registerNewAccount)
141 self.bridge.register("connect", self.connect) 140 self.bridge.register("connect", self.connect)
142 self.bridge.register("asyncConnect", self.asyncConnect) 141 self.bridge.register("asyncConnect", self.asyncConnect)
143 self.bridge.register("disconnect", self.disconnect) 142 self.bridge.register("disconnect", self.disconnect)
144 self.bridge.register("getContacts", self.getContacts) 143 self.bridge.register("getContacts", self.getContacts)