frontends (xmlui): fixed widget closing on submit
This commit is contained in:
parent
7f8dc5849f
commit
5226e6ef6b
2 changed files with 2 additions and 2 deletions
|
|
@ -189,7 +189,6 @@ class Dialog(object):
|
|||
def _xmluiSubmit(self, data):
|
||||
if self._xmlui_parent.submit_id is None:
|
||||
log.debug(_("Nothing to submit"))
|
||||
self._xmluiClose()
|
||||
else:
|
||||
self._xmlui_parent.submit(data)
|
||||
|
||||
|
|
@ -282,6 +281,7 @@ class XMLUIBase(object):
|
|||
return None
|
||||
|
||||
def submit(self, data):
|
||||
self._xmluiClose()
|
||||
if self.submit_id is None:
|
||||
raise ValueError("Can't submit is self.submit_id is not set")
|
||||
if "session_id" in data:
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class ProfileManager(object):
|
|||
@param profile: %(doc_profile)s
|
||||
@return: deferred dict
|
||||
"""
|
||||
assert(profile in self.profile_ciphers)
|
||||
assert profile in self.profile_ciphers
|
||||
|
||||
try:
|
||||
profile_password = data[xml_tools.formEscape('profile_password')]
|
||||
|
|
|
|||
Loading…
Reference in a new issue