__main__.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:virtual-core 作者: tiagoantao 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号