primitivus: fixed profileCreate bridge call

This commit is contained in:
Goffi 2017-03-08 20:44:28 +01:00
commit 6378718ddc
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class ProfileManager(QuickProfileManager, urwid.WidgetWrap):
def newProfile(self, button, edit):
"""Create the profile"""
name = edit.get_edit_text()
self.host.bridge.createProfile(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure)
self.host.bridge.profileCreate(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure)
def newProfileCreated(self, profile):
# new profile will be selected, and a selected profile assume the session is started

View file

@ -134,7 +134,7 @@ class QuickProfileManager(object):
def _getErrorMessage(self, reason):
"""Return an error message corresponding to profile creation error
@param reason (str): reason as returned by createProfile
@param reason (str): reason as returned by profileCreate
@return (unicode): human readable error message
"""
if reason == "ConflictError":