commands.py 文件源码

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

项目:vspheretools 作者: devopshq 项目源码 文件源码
def _wsdl2dispatch(options, wsdl):
    """TOOD: Remove ServiceContainer stuff, and replace with WSGI.
    """
    kw = dict()

    # TODO: make all this handler arch
    if options.address is True:
        ss = ServiceDescriptionWSA()
    else:
        ss = ServiceDescription(**kw)

    ss.fromWSDL(wsdl)
    file_name = ss.getServiceModuleName()+'.py'
    fd = open( join(options.output_dir, file_name), 'w+')
    ss.write(fd)
    fd.close()

    return file_name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号