當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。