improve code. see #6957

This commit is contained in:
Yann Leboulanger 2011-10-06 08:53:31 +02:00
parent a027ce137a
commit 32f22d88cb
1 changed files with 2 additions and 4 deletions

View File

@ -3768,14 +3768,12 @@ class AccountCreationWizardWindow:
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
if not obj.config[field]:
# ignore empty tag
continue
empty_config = False empty_config = False
break break
if not obj.is_form and 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
self.data_form_widget.show_all() self.data_form_widget.show_all()
self.xml.get_object('form_vbox').pack_start(self.data_form_widget) self.xml.get_object('form_vbox').pack_start(self.data_form_widget)
self.ssl_fingerprint = obj.ssl_fingerprint self.ssl_fingerprint = obj.ssl_fingerprint