本文整理汇总了Python中SOAPpy.SOAPProxy.getTrackerFull方法的典型用法代码示例。如果您正苦于以下问题:Python SOAPProxy.getTrackerFull方法的具体用法?Python SOAPProxy.getTrackerFull怎么用?Python SOAPProxy.getTrackerFull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SOAPpy.SOAPProxy
的用法示例。
在下文中一共展示了SOAPProxy.getTrackerFull方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: list
# 需要导入模块: from SOAPpy import SOAPProxy [as 别名]
# 或者: from SOAPpy.SOAPProxy import getTrackerFull [as 别名]
github_collaborators = github_repo.get_collaborators()
# get milestones
github_milestones = github_repo.get_milestones()
# get labels
github_labels = github_repo.get_labels()
# get all issues
all_github_issues = list(github_repo.get_issues(state="open")) + list(github_repo.get_issues(state="closed"))
#############################################################################
# do the work
#############################################################################
# loop through all GForge trackers
for t in trackers:
# more info
full = GFapi.getTrackerFull(GFsession, t.tracker_id)
for e in full.extra_field_elements:
# save for later lookup
gforge_elements[e.element_id] = e.element_name
# generate and cache github label for this extra data
github_label(e.element_name)
# create new tracker query to page through gracefully
timestamp = datetime.now().strftime('%Y%m%d-%H%M%S')
qid = GFapi.addTrackerQuery(GFsession, t.tracker_id, GFuserid, "GitHub Migration - %s" % timestamp, 0)
# page through the new stored query, accumulate the results
gforge_trackeritems = []
offset = 0
GFMAXRESULTS = 50
while offset < t.item_total: