本文整理汇总了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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)