本文整理汇总了Python中SOAPpy.SOAPProxy.getUserArray方法的典型用法代码示例。如果您正苦于以下问题:Python SOAPProxy.getUserArray方法的具体用法?Python SOAPProxy.getUserArray怎么用?Python SOAPProxy.getUserArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SOAPpy.SOAPProxy
的用法示例。
在下文中一共展示了SOAPProxy.getUserArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: list
# 需要导入模块: from SOAPpy import SOAPProxy [as 别名]
# 或者: from SOAPpy.SOAPProxy import getUserArray [as 别名]
userstoadd.add(i.submitted_by)
# all message authors
for m in i.messages:
if m.submitted_by not in gforge_users:
userstoadd.add(m.submitted_by)
# all commit authors
for c in i.scm_commits:
if c.user_id not in gforge_users:
userstoadd.add(c.user_id)
# all assignees
for a in i.assignees:
if a.assignee not in gforge_users:
userstoadd.add(a.assignee)
# add them to gforge_users dictionary
identified_gforge_users = GFapi.getUserArray(GFsession, list(userstoadd))
for u in identified_gforge_users:
gforge_users[u.user_id] = {'unix_name': u.unix_name, 'email': u.email}
# remove gforge system user
if 100 in gforge_users: del gforge_users[100]
# check user mapping between gforge and github
check_user_mapping()
# migrate gforge tracker items to github
migrate_gforge_trackeritems_to_github( gforge_trackeritems )
# exit cleanly
print "Done."