当前位置: 首页>>代码示例>>Python>>正文


Python services.IssueService类代码示例

本文整理汇总了Python中bugwarrior.services.IssueService的典型用法代码示例。如果您正苦于以下问题:Python IssueService类的具体用法?Python IssueService怎么用?Python IssueService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了IssueService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: validate_config

    def validate_config(cls, config, target):
        if not config.has_option(target, 'trac.base_uri'):
            die("[%s] has no 'base_uri'" % target)
        elif '://' in config.get(target, 'trac.base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

        IssueService.validate_config(config, target)
开发者ID:irl,项目名称:bugwarrior,代码行数:7,代码来源:trac.py

示例2: validate_config

    def validate_config(cls, config, target):
        req = ["bugzilla.username", "bugzilla.password", "bugzilla.base_uri"]
        for option in req:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
开发者ID:tychoish,项目名称:bugwarrior,代码行数:7,代码来源:bz.py

示例3: validate_config

    def validate_config(cls, service_config, target):
        if 'base_uri' not in service_config:
            die("[%s] has no 'base_uri'" % target)
        elif '://' in service_config.get('base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

        IssueService.validate_config(service_config, target)
开发者ID:ralphbean,项目名称:bugwarrior,代码行数:7,代码来源:trac.py

示例4: validate_config

    def validate_config(cls, config, target):
        options = ("versionone.base_uri", "versionone.username")
        for option in options:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
开发者ID:bexelbie,项目名称:bugwarrior,代码行数:7,代码来源:versionone.py

示例5: validate_config

    def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        # TODO -- validate other options

        IssueService.validate_config(config, target)
开发者ID:lmacken,项目名称:bugwarrior,代码行数:7,代码来源:bitbucket.py

示例6: validate_config

    def validate_config(cls, service_config, target):
        if 'username' not in service_config:
            die("[%s] has no 'username'" % target)
        if 'login' not in service_config:
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(service_config, target)
开发者ID:ralphbean,项目名称:bugwarrior,代码行数:7,代码来源:bitbucket.py

示例7: validate_config

    def validate_config(cls, config, target):
        if not config.has_option(target, "bitbucket.username"):
            die("[%s] has no 'username'" % target)
        if not config.has_option(target, "bitbucket.login"):
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(config, target)
开发者ID:ryneeverett,项目名称:bugwarrior,代码行数:7,代码来源:bitbucket.py

示例8: validate_config

    def validate_config(cls, config, target):
        for k in (
            'activecollab.url', 'activecollab.key', 'activecollab.user_id'
        ):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
开发者ID:FvD,项目名称:bugwarrior,代码行数:8,代码来源:activecollab.py

示例9: validate_config

    def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        if config.has_option(target, 'only_if_assigned'):
            die("[%s] - github does not currently support issue owners." %
                target)

        IssueService.validate_config(config, target)
开发者ID:lmacken,项目名称:bugwarrior,代码行数:9,代码来源:github.py

示例10: validate_config

    def validate_config(cls, service_config, target):
        options = (
            'base_uri',
            'username',
        )
        for option in options:
            if option not in service_config:
                die("[%s] has no 'versionone.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
开发者ID:ralphbean,项目名称:bugwarrior,代码行数:10,代码来源:versionone.py

示例11: validate_config

    def validate_config(cls, config, target):
        if not config.has_option(target, 'login'):
            die("[%s] has no 'login'" % target)

        if not config.has_option(target, 'passw'):
            die("[%s] has no 'passw'" % target)

        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        IssueService.validate_config(config, target)
开发者ID:jenisys,项目名称:bugwarrior,代码行数:11,代码来源:github.py

示例12: validate_config

    def validate_config(cls, service_config, target):
        if ('udd' in service_config and
                asbool(service_config.get('udd')) and
                'email' not in service_config):
            die("[%s] has no 'bts.email' but UDD search was requested" %
                (target,))

        if 'packages' not in service_config and 'email' not in service_config:
            die("[%s] has neither 'bts.email' or 'bts.packages'" % (target,))

        if ('udd_ignore_sponsor' in service_config and
            (not asbool(service_config.get('udd')))):
            die("[%s] defines settings for UDD search without enabling"
                " UDD search" % (target,))

        IssueService.validate_config(service_config, target)
开发者ID:ralphbean,项目名称:bugwarrior,代码行数:16,代码来源:bts.py

示例13: validate_config

    def validate_config(cls, config, target):
        for option in ["jira.username", "jira.password", "jira.base_uri"]:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
开发者ID:ubuntudroid,项目名称:bugwarrior,代码行数:6,代码来源:jira.py

示例14: validate_config

    def validate_config(cls, config, target):
        for k in ('url', 'key', 'projects', 'user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
开发者ID:Liudvikas,项目名称:bugwarrior,代码行数:6,代码来源:activecollab2.py

示例15: validate_config

    def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'hostname'):
            if k not in service_config:
                die("[%s] has no 'mplan.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
开发者ID:ralphbean,项目名称:bugwarrior,代码行数:6,代码来源:mplan.py


注:本文中的bugwarrior.services.IssueService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。