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
This commit is contained in:
Goffi 2015-09-26 15:00:27 +02:00
commit ea0eb492d5

View file

@ -65,7 +65,7 @@ class ProfileManager(object):
return self._verifyPassword(data_, profile)
callback_id = self.host.registerCallback(xmlui_cb, with_data=True, one_shot=True)
form_ui = xml_tools.XMLUI("form", title=D_('Profile password for %s') % profile, submit_id=callback_id)
form_ui = xml_tools.XMLUI("form", title=D_('Profile password for {}').format(profile), submit_id=callback_id)
form_ui.addPassword('profile_password', value='')
return {'xmlui': form_ui.toXml()}