示例#1
0
def openidrp_teams_create_user(info, u, cfg):
    # Check for Launchpad teams data in response
    teams = None
    #if teams_extension_avail and len(cfg.openidrp_authorized_teams) > 0:
    teams_response = TeamsResponse.fromSuccessResponse(info)
    teams = teams_response.is_member
    if teams:
        _save_teams_acl(u, teams, cfg)
    return u
def openidrp_teams_create_user(info, u, cfg):
    # Check for Launchpad teams data in response
    teams = None
    #if teams_extension_avail and len(cfg.openidrp_authorized_teams) > 0:
    teams_response = TeamsResponse.fromSuccessResponse(info)
    teams = teams_response.is_member
    if teams:
        _save_teams_acl(u, teams, cfg)
    return u
示例#3
0
def openidrp_teams_update_user(info, u, cfg):
    teams = None
    teams_response = TeamsResponse.fromSuccessResponse(info)
    teams = teams_response.is_member
    if teams:
        _save_teams_acl(u, teams, cfg)
def openidrp_teams_update_user(info, u, cfg):
    teams = None
    teams_response = TeamsResponse.fromSuccessResponse(info)
    teams = teams_response.is_member
    if teams:
        _save_teams_acl(u, teams, cfg)