本文整理汇总了Python中SOAPpy.SOAPProxy.getTrackers方法的典型用法代码示例。如果您正苦于以下问题:Python SOAPProxy.getTrackers方法的具体用法?Python SOAPProxy.getTrackers怎么用?Python SOAPProxy.getTrackers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SOAPpy.SOAPProxy
的用法示例。
在下文中一共展示了SOAPProxy.getTrackers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SOAPProxy
# 需要导入模块: from SOAPpy import SOAPProxy [as 别名]
# 或者: from SOAPpy.SOAPProxy import getTrackers [as 别名]
# lookup tables for gforge stuff
gforge_users = {}
gforge_elements = {}
# setup GForge SOAP endpoint
from SOAPpy import SOAPProxy
GFapi = SOAPProxy(config.GFORGE_ENDPOINT_URL, namespace=config.GFORGE_XML_NAMESPACE)
# uncomment to see outgoing/incoming XML
#GFapi.config.debug = 1
# get GForge session
GFsession = GFapi.login( config.GFORGE_LOGIN , config.GFORGE_PASSWORD )
GFuserid = GFsession.split(":")[0]
# get GForge project
p = GFapi.getProjectByUnixName(GFsession, config.GFORGE_PROJECT)
# get all GForge trackers for this project
trackers = GFapi.getTrackers(GFsession, p.project_id, -1, -1)
#############################################################################
# GitHub Initialization
#############################################################################
github = Github( config.GITHUB_TOKEN )
github_user = github.get_user()
github_label_cache = {} # to avoid unnecessary API requests
if "/" in config.GITHUB_PROJECT:
owner_name, github_project = github_project.split("/")
try: github_owner = github.get_user(owner_name)
except GithubException:
try: github_owner = github.get_organization(owner_name)
except GithubException:
github_owner = github_user