From d4f6ac9307a0536a9679b05499649a241a4f44d6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 9 Jan 2012 17:40:02 +0100 Subject: [PATCH] fix OOB registration. Fixes #6957 --- src/config.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/config.py b/src/config.py index 379877629..8b6d1c11f 100644 --- a/src/config.py +++ b/src/config.py @@ -3803,23 +3803,24 @@ class AccountCreationWizardWindow: self.back_button.show() self.forward_button.show() self.is_form = obj.is_form + empty_config = True if obj.is_form: dataform = dataforms.ExtendForm(node=obj.config) self.data_form_widget = dataforms_widget.DataFormWidget(dataform) + empty_config = False else: self.data_form_widget = FakeDataForm(obj.config) - empty_config = True for field in obj.config: if field in ('key', 'instructions', 'x', 'registered'): continue empty_config = False break - if empty_config: - self.forward_button.set_sensitive(False) - self.notebook.set_current_page(4) # show form page - return self.data_form_widget.show_all() self.xml.get_object('form_vbox').pack_start(self.data_form_widget) + if empty_config: + self.forward_button.set_sensitive(False) + self.notebook.set_current_page(4) # show form page + return self.ssl_fingerprint = obj.ssl_fingerprint self.ssl_cert = obj.ssl_cert if obj.ssl_msg: