def welcome(run=0):
if run == 0:
form = wizard.config.get('General', {})
else:
form = _delist(request.form)
if _has_all_parameters(form, ['host', 'country', 'state', 'locality',
'orgname', 'orgunit', 'commonname',
'email']):
wizard.change_config('General', **form)
return redirect(url_for('determine_ssh_status', run=0))
if 'host' not in form:
form['host'] = socket.getfqdn()
all_params = {'run': run, **form}
return render_template('welcome.html',
menu_options=wizard.get_available_options(),
**all_params)
评论列表
文章目录