本文整理匯總了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)