comparison src/stdui/ui_profile_manager.py @ 1131:90f82f4ee405

core (stdui): fixed forgotten parametter in getParamError
author Goffi <goffi@goffi.org>
date Mon, 25 Aug 2014 21:32:23 +0200
parents 8e0072754413
children 628e320eab1f
comparison
equal deleted inserted replaced
1130:adea30ca0b51 1131:90f82f4ee405
16 # GNU Affero General Public License for more details. 16 # GNU Affero General Public License for more details.
17 17
18 # You should have received a copy of the GNU Affero General Public License 18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 from sat.core.i18n import _, D_ 21 from sat.core.i18n import D_
22 from sat.core.constants import Const as C 22 from sat.core.constants import Const as C
23 from sat.tools import xml_tools 23 from sat.tools import xml_tools
24 from sat.memory.crypto import PasswordHasher 24 from sat.memory.crypto import PasswordHasher
25 from sat.memory.memory import ProfileSessions 25 from sat.memory.memory import ProfileSessions
26 from twisted.internet import defer 26 from twisted.internet import defer
77 d = self.host.memory.asyncGetStringParamA(C.PROFILE_PASS_PATH[1], C.PROFILE_PASS_PATH[0], profile_key=profile) 77 d = self.host.memory.asyncGetStringParamA(C.PROFILE_PASS_PATH[1], C.PROFILE_PASS_PATH[0], profile_key=profile)
78 d.addCallback(gotProfileCipher) 78 d.addCallback(gotProfileCipher)
79 d.addErrback(self.getParamError) 79 d.addErrback(self.getParamError)
80 return d 80 return d
81 81
82 def getParamError(self): 82 def getParamError(self, failure):
83 _dialog = xml_tools.XMLUI('popup', title=D_('Error')) 83 _dialog = xml_tools.XMLUI('popup', title=D_('Error'))
84 _dialog.addText(D_("Can't get profile parameter.")) 84 _dialog.addText(D_("Can't get profile parameter."))
85 return {'xmlui': _dialog.toXml()} 85 return {'xmlui': _dialog.toXml()}
86 86
87 @defer.inlineCallbacks 87 @defer.inlineCallbacks