コード例 #1
0
ファイル: bz.py プロジェクト: wfranzini/bugwarrior
    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))

        super(BugzillaService, cls).validate_config(config, target)
コード例 #2
0
ファイル: trac.py プロジェクト: irl/bugwarrior
    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)
コード例 #3
0
ファイル: bz.py プロジェクト: tychoish/bugwarrior
    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)
コード例 #4
0
ファイル: bitbucket.py プロジェクト: ryneeverett/bugwarrior
    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)
コード例 #5
0
ファイル: bitbucket.py プロジェクト: westurner/bugwarrior
    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)
コード例 #6
0
    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)
コード例 #7
0
ファイル: versionone.py プロジェクト: bexelbie/bugwarrior
    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)
コード例 #8
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'projects', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab2.%s'" % (target, k))

        super(ActiveCollab2Service,
              cls).validate_config(service_config, target)
コード例 #9
0
ファイル: trac.py プロジェクト: zubieta/bugwarrior
    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)
コード例 #10
0
    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)
コード例 #11
0
    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)
コード例 #12
0
ファイル: bitbucket.py プロジェクト: ralphbean/bugwarrior
    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)
コード例 #13
0
ファイル: bz.py プロジェクト: bexelbie/bugwarrior
    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))

        super(BugzillaService, cls).validate_config(config, target)
コード例 #14
0
    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)
コード例 #15
0
    def validate_config(cls, config, target):
        for k in ('activecollab2.url', 'activecollab2.key',
                  'activecollab2.projects', 'activecollab2.user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(config, target)
コード例 #16
0
ファイル: pagure.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        if 'tag' not in service_config and 'repo' not in service_config:
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if 'base_url' not in service_config:
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(service_config, target)
コード例 #17
0
    def validate_config(cls, service_config, target):
        if 'tag' not in service_config and 'repo' not in service_config:
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if 'base_url' not in service_config:
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(service_config, target)
コード例 #18
0
ファイル: __init__.py プロジェクト: westurner/bugwarrior
 def validate_config(cls, service_config, target):
     """ Validate generic options for a particular target """
     if service_config.has_option(target, 'only_if_assigned'):
         die("[%s] has an 'only_if_assigned' option.  Should be "
             "'%s.only_if_assigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'also_unassigned'):
         die("[%s] has an 'also_unassigned' option.  Should be "
             "'%s.also_unassigned'." % (target, cls.CONFIG_PREFIX))
コード例 #19
0
ファイル: activecollab.py プロジェクト: FvD/bugwarrior
    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)
コード例 #20
0
ファイル: pagure.py プロジェクト: irl/bugwarrior
    def validate_config(cls, config, target):
        if not config.has_option(target, 'pagure.tag') and \
           not config.has_option(target, 'pagure.repo'):
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

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

        super(PagureService, cls).validate_config(config, target)
コード例 #21
0
    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)
コード例 #22
0
ファイル: pagure.py プロジェクト: jean/bugwarrior
    def validate_config(cls, config, target):
        if not config.has_option(target, 'pagure.tag') and \
           not config.has_option(target, 'pagure.repo'):
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

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

        super(PagureService, cls).validate_config(config, target)
コード例 #23
0
ファイル: bz.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        req = ['username', 'base_uri']
        for option in req:
            if option not in service_config:
                die("[%s] has no 'bugzilla.%s'" % (target, option))
        if 'password' not in service_config and 'api_key' not in service_config:
            die("[%s] has neither 'bugzilla.password' nor 'bugzilla.api_key'" % (target,))

        super(BugzillaService, cls).validate_config(service_config, target)
コード例 #24
0
ファイル: github.py プロジェクト: lmacken/bugwarrior
    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)
コード例 #25
0
ファイル: bz.py プロジェクト: westurner/bugwarrior
    def validate_config(cls, service_config, target):
        req = ['username', 'base_uri']
        for option in req:
            if option not in service_config:
                die("[%s] has no 'bugzilla.%s'" % (target, option))
        if 'password' not in service_config and 'api_key' not in service_config:
            die("[%s] has neither 'bugzilla.password' nor 'bugzilla.api_key'" %
                (target, ))

        super(BugzillaService, cls).validate_config(service_config, target)
コード例 #26
0
    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)
コード例 #27
0
ファイル: versionone.py プロジェクト: wfranzini/bugwarrior
    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)
コード例 #28
0
ファイル: activecollab2.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        for k in (
            'url',
            'key',
            'projects',
            'user_id'
        ):
            if k not in service_config:
                die("[%s] has no 'activecollab2.%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(service_config, target)
コード例 #29
0
ファイル: activecollab2.py プロジェクト: FvD/bugwarrior
    def validate_config(cls, config, target):
        for k in (
            'activecollab2.url',
            'activecollab2.key',
            'activecollab2.projects',
            'activecollab2.user_id'
        ):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(config, target)
コード例 #30
0
ファイル: __init__.py プロジェクト: ralphbean/bugwarrior
 def validate_config(cls, service_config, target):
     """ Validate generic options for a particular target """
     if service_config.has_option(target, 'only_if_assigned'):
         die("[%s] has an 'only_if_assigned' option.  Should be "
             "'%s.only_if_assigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'also_unassigned'):
         die("[%s] has an 'also_unassigned' option.  Should be "
             "'%s.also_unassigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'default_priority'):
         die("[%s] has a 'default_priority' option.  Should be "
             "'%s.default_priority'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'add_tags'):
         die("[%s] has an 'add_tags' option.  Should be "
             "'%s.add_tags'." % (target, cls.CONFIG_PREFIX))
コード例 #31
0
ファイル: gitlab.py プロジェクト: LordGaav/bugwarrior
    def validate_config(cls, config, target):
        if not config.has_option(target, 'gitlab.host'):
            die("[%s] has no 'gitlab.host'" % target)

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

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

        super(GitlabService, cls).validate_config(config, target)
コード例 #32
0
ファイル: gitlab.py プロジェクト: b-boogaard/bugwarrior
    def validate_config(cls, config, target):
        if not config.has_option(target, 'gitlab.host'):
            die("[%s] has no 'gitlab.host'" % target)

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

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

        super(GitlabService, cls).validate_config(config, target)
コード例 #33
0
ファイル: gitlab.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        if 'host' not in service_config:
            die("[%s] has no 'gitlab.host'" % target)

        if 'login' not in service_config:
            die("[%s] has no 'gitlab.login'" % target)

        if 'token' not in service_config:
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(service_config, target)
コード例 #34
0
ファイル: gitlab.py プロジェクト: westurner/bugwarrior
    def validate_config(cls, service_config, target):
        if 'host' not in service_config:
            die("[%s] has no 'gitlab.host'" % target)

        if 'login' not in service_config:
            die("[%s] has no 'gitlab.login'" % target)

        if 'token' not in service_config:
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(service_config, target)
コード例 #35
0
ファイル: github.py プロジェクト: FvD/bugwarrior
    def validate_config(cls, config, target):
        if not config.has_option(target, 'github.login'):
            die("[%s] has no 'github.login'" % target)

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

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

        super(GithubService, cls).validate_config(config, target)
コード例 #36
0
    def validate_config(cls, service_config, target):
        if 'login' not in service_config:
            die("[%s] has no 'github.login'" % target)

        if 'token' not in service_config and 'password' not in service_config:
            die("[%s] has no 'github.token' or 'github.password'" % target)

        if 'username' not in service_config:
            die("[%s] has no 'github.username'" % target)

        super(GithubService, cls).validate_config(service_config, target)
コード例 #37
0
ファイル: github.py プロジェクト: jenisys/bugwarrior
    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)
コード例 #38
0
ファイル: github.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        if 'login' not in service_config:
            die("[%s] has no 'github.login'" % target)

        if 'token' not in service_config and 'password' not in service_config:
            die("[%s] has no 'github.token' or 'github.password'" % target)

        if 'username' not in service_config:
            die("[%s] has no 'github.username'" % target)

        super(GithubService, cls).validate_config(service_config, target)
コード例 #39
0
ファイル: bts.py プロジェクト: zubieta/bugwarrior
    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)
コード例 #40
0
ファイル: bts.py プロジェクト: ralphbean/bugwarrior
    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)
コード例 #41
0
ファイル: activecollab.py プロジェクト: ralphbean/bugwarrior
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
コード例 #42
0
ファイル: youtrack.py プロジェクト: gdetrez/bugwarrior
    def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'host'):
            if k not in service_config:
                die("[%s] has no 'youtrack.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
コード例 #43
0
ファイル: teamlab.py プロジェクト: jenisys/bugwarrior
    def validate_config(cls, config, target):
        for k in ('login', 'password', 'hostname'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
コード例 #44
0
ファイル: activecollab2.py プロジェクト: Liudvikas/bugwarrior
    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)
コード例 #45
0
ファイル: trac.py プロジェクト: jenisys/bugwarrior
    def validate_config(cls, config, target):
        for option in ['trac.username', 'trac.password', 'trac.base_uri']:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
コード例 #46
0
    def validate_config(cls, service_config, target):
        for option in ('username', 'password', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'jira.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
コード例 #47
0
ファイル: mplan.py プロジェクト: ralphbean/bugwarrior
    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)
コード例 #48
0
 def check_key(opt):
     """ Check that the given key exist in the configuration  """
     if opt not in service_config:
         die("[{}] has no 'trello.{}'".format(target, opt))
コード例 #49
0
ファイル: taiga.py プロジェクト: zubieta/bugwarrior
    def validate_config(cls, service_config, target):
        for option in ('auth_token', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'taiga.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
コード例 #50
0
    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)
コード例 #51
0
ファイル: trello.py プロジェクト: ralphbean/bugwarrior
 def check_key(opt):
     """ Check that the given key exist in the configuration  """
     if opt not in service_config:
         die("[{}] has no 'trello.{}'".format(target, opt))
コード例 #52
0
    def validate_config(cls, config, target):
        for option in ['trac.username', 'trac.password', 'trac.base_uri']:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
コード例 #53
0
ファイル: teamlab.py プロジェクト: jamur2/bugwarrior
    def validate_config(cls, config, target):
        for k in ('login', 'password', 'hostname'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
コード例 #54
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
コード例 #55
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key'):
            if k not in service_config:
                die("[%s] has no 'redmine.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
コード例 #56
0
ファイル: jira.py プロジェクト: ubuntudroid/bugwarrior
    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)