comparison frontends/src/quick_frontend/quick_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 255830fdb80b
children 8b37a62336c3
comparison
equal deleted inserted replaced
2170:d246666ebe25 2171:978011533892
132 ## Helping methods ## 132 ## Helping methods ##
133 133
134 def _getErrorMessage(self, reason): 134 def _getErrorMessage(self, reason):
135 """Return an error message corresponding to profile creation error 135 """Return an error message corresponding to profile creation error
136 136
137 @param reason (str): reason as returned by createProfile 137 @param reason (str): reason as returned by profileCreate
138 @return (unicode): human readable error message 138 @return (unicode): human readable error message
139 """ 139 """
140 if reason == "ConflictError": 140 if reason == "ConflictError":
141 message = _("A profile with this name already exists") 141 message = _("A profile with this name already exists")
142 elif reason == "CancelError": 142 elif reason == "CancelError":