comparison cagou/core/profile_manager.py @ 139:b270fcc87304

profile manager: fixed profileCreate bridge call
author Goffi <goffi@goffi.org>
date Fri, 13 Apr 2018 18:57:18 +0200
parents cd99f70ea592
children 89ba66464329
comparison
equal deleted inserted replaced
138:53fb221ad084 139:b270fcc87304
99 99
100 def doCreate(self): 100 def doCreate(self):
101 name = self.profile_name.text.strip() 101 name = self.profile_name.text.strip()
102 # XXX: we use XMPP password for profile password to simplify 102 # XXX: we use XMPP password for profile password to simplify
103 # if user want to change profile password, he can do it in preferences 103 # if user want to change profile password, he can do it in preferences
104 G.host.bridge.asyncCreateProfile(name, self.password.text, callback=lambda: self.onCreationSuccess(name), errback=self.onCreationFailure) 104 G.host.bridge.profileCreate(name, self.password.text, u'', callback=lambda: self.onCreationSuccess(name), errback=self.onCreationFailure)
105 105
106 106
107 class DeleteProfilesScreen(Screen): 107 class DeleteProfilesScreen(Screen):
108 108
109 def __init__(self, pm): 109 def __init__(self, pm):