fix OOB registration. Fixes #6957
This commit is contained in:
parent
f4451af64c
commit
d4f6ac9307
|
@ -3803,23 +3803,24 @@ class AccountCreationWizardWindow:
|
||||||
self.back_button.show()
|
self.back_button.show()
|
||||||
self.forward_button.show()
|
self.forward_button.show()
|
||||||
self.is_form = obj.is_form
|
self.is_form = obj.is_form
|
||||||
|
empty_config = True
|
||||||
if obj.is_form:
|
if obj.is_form:
|
||||||
dataform = dataforms.ExtendForm(node=obj.config)
|
dataform = dataforms.ExtendForm(node=obj.config)
|
||||||
self.data_form_widget = dataforms_widget.DataFormWidget(dataform)
|
self.data_form_widget = dataforms_widget.DataFormWidget(dataform)
|
||||||
|
empty_config = False
|
||||||
else:
|
else:
|
||||||
self.data_form_widget = FakeDataForm(obj.config)
|
self.data_form_widget = FakeDataForm(obj.config)
|
||||||
empty_config = True
|
|
||||||
for field in obj.config:
|
for field in obj.config:
|
||||||
if field in ('key', 'instructions', 'x', 'registered'):
|
if field in ('key', 'instructions', 'x', 'registered'):
|
||||||
continue
|
continue
|
||||||
empty_config = False
|
empty_config = False
|
||||||
break
|
break
|
||||||
|
self.data_form_widget.show_all()
|
||||||
|
self.xml.get_object('form_vbox').pack_start(self.data_form_widget)
|
||||||
if empty_config:
|
if empty_config:
|
||||||
self.forward_button.set_sensitive(False)
|
self.forward_button.set_sensitive(False)
|
||||||
self.notebook.set_current_page(4) # show form page
|
self.notebook.set_current_page(4) # show form page
|
||||||
return
|
return
|
||||||
self.data_form_widget.show_all()
|
|
||||||
self.xml.get_object('form_vbox').pack_start(self.data_form_widget)
|
|
||||||
self.ssl_fingerprint = obj.ssl_fingerprint
|
self.ssl_fingerprint = obj.ssl_fingerprint
|
||||||
self.ssl_cert = obj.ssl_cert
|
self.ssl_cert = obj.ssl_cert
|
||||||
if obj.ssl_msg:
|
if obj.ssl_msg:
|
||||||
|
|
Loading…
Reference in New Issue