示例#1
0
文件: conf.py 项目: s1shed/dnuos
def set_html_format(option, opt_str, value, parser):

    parser.values.output_module = dnuos.output.html
    deprecation(
        _('The %s option is deprecated and will be removed in a '
          'future version. Use --template=html instead to ensure '
          'compatibility with future versions.') % opt_str)
示例#2
0
def set_db_format(option, opt_str, value, parser):

    parser.values.outfile = value
    parser.values.output_module = dnuos.output.db
    deprecation(_('The %s option is deprecated and will be removed in a '
                  'future version. Use --template=db --file=FILE instead to '
                  'ensure compatibility with future versions.') % opt_str)
示例#3
0
文件: conf.py 项目: s1shed/dnuos
def set_db_format(option, opt_str, value, parser):

    parser.values.outfile = value
    parser.values.output_module = dnuos.output.db
    deprecation(
        _('The %s option is deprecated and will be removed in a '
          'future version. Use --template=db --file=FILE instead to '
          'ensure compatibility with future versions.') % opt_str)
示例#4
0
def set_html_format(option, opt_str, value, parser):

    parser.values.output_module = dnuos.output.html
    deprecation(_('The %s option is deprecated and will be removed in a '
                  'future version. Use --template=html instead to ensure '
                  'compatibility with future versions.') % opt_str)