Mercurial > libervia-backend
comparison frontends/src/primitivus/profile_manager.py @ 2171:978011533892
primitivus: fixed profileCreate bridge call
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 08 Mar 2017 20:44:28 +0100 |
parents | 1bb9bf1b4150 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2170:d246666ebe25 | 2171:978011533892 |
---|---|
86 self.host.removePopUp() | 86 self.host.removePopUp() |
87 | 87 |
88 def newProfile(self, button, edit): | 88 def newProfile(self, button, edit): |
89 """Create the profile""" | 89 """Create the profile""" |
90 name = edit.get_edit_text() | 90 name = edit.get_edit_text() |
91 self.host.bridge.createProfile(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure) | 91 self.host.bridge.profileCreate(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure) |
92 | 92 |
93 def newProfileCreated(self, profile): | 93 def newProfileCreated(self, profile): |
94 # new profile will be selected, and a selected profile assume the session is started | 94 # new profile will be selected, and a selected profile assume the session is started |
95 self.host.bridge.profileStartSession('', profile, callback=lambda dummy: self.newProfileSessionStarted(profile), errback=self.profileCreationFailure) | 95 self.host.bridge.profileStartSession('', profile, callback=lambda dummy: self.newProfileSessionStarted(profile), errback=self.profileCreationFailure) |
96 | 96 |