comparison src/stdui/ui_profile_manager.py @ 1530:94cd4d242dc5

core (XMLUI): restorer submit_id: - submit_id was missing due to a previous change in commit a2e4b976e707 - XMLUI.submit_id can now be None (not set) or empty string in addition to normal values fix bug 102
author Goffi <goffi@goffi.org>
date Sat, 26 Sep 2015 15:00:27 +0200
parents 069ad98b360d
children 05274b27e90e
comparison
equal deleted inserted replaced
1529:a151f3a5a2d0 1530:94cd4d242dc5
63 # case 4: prompt the user for a password 63 # case 4: prompt the user for a password
64 def xmlui_cb(data_, profile): 64 def xmlui_cb(data_, profile):
65 return self._verifyPassword(data_, profile) 65 return self._verifyPassword(data_, profile)
66 66
67 callback_id = self.host.registerCallback(xmlui_cb, with_data=True, one_shot=True) 67 callback_id = self.host.registerCallback(xmlui_cb, with_data=True, one_shot=True)
68 form_ui = xml_tools.XMLUI("form", title=D_('Profile password for %s') % profile, submit_id=callback_id) 68 form_ui = xml_tools.XMLUI("form", title=D_('Profile password for {}').format(profile), submit_id=callback_id)
69 form_ui.addPassword('profile_password', value='') 69 form_ui.addPassword('profile_password', value='')
70 return {'xmlui': form_ui.toXml()} 70 return {'xmlui': form_ui.toXml()}
71 71
72 check_empty_data = {'profile_password': ''} 72 check_empty_data = {'profile_password': ''}
73 d = self._verifyPassword(check_empty_data, profile) 73 d = self._verifyPassword(check_empty_data, profile)