1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Remove user id, and remove userid middleware

This commit is contained in:
xiez
2012-05-02 20:58:06 +08:00
parent 421a79ca1b
commit eaaee89f55
7 changed files with 57 additions and 78 deletions

View File

@@ -378,16 +378,16 @@ def get_branches(repo_id):
"""Get branches of a given repo"""
return seafserv_threaded_rpc.branch_gets(repo_id)
def get_binding_userids(email):
"""Get user ids of a given email"""
def get_binding_peerids(email):
"""Get peer ids of a given email"""
try:
user_ids = ccnet_rpc.get_binding_userids(email)
peer_ids = ccnet_rpc.get_binding_peerids(email)
except SearpcError:
return []
userid_list = []
for user_id in user_ids.split("\n"):
if user_id == '':
peerid_list = []
for peer_id in peer_ids.split("\n"):
if peer_id == '':
continue
userid_list.append(user_id)
return userid_list
peerid_list.append(peer_id)
return peerid_list