(request_user_id, sync_user_id)
return request_user, as_username
Return username param and as_user param for performing formpalyer sync
Return username param and as_user param for performing formpalyer sync
Return username param and as_user param for performing formpalyer sync
def get_prime_restore_user_params(request_user_id, sync_user_id):
    """Return username param and as_user param for performing formpalyer sync"""
    request_user = CouchUser.get_by_user_id(request_user_id).username
    as_username = None
    if sync_user_id and sync_user_id != request_user_id:
        as_user = CouchUser.get_by_user_id(sync_user_id)
        as_username = raw_username(as_user.username) if as_user else None
    return request_user, as_username
def get_prime_restore_user_params ( request_user_id , sync_user_id ) : request_user = CouchUser . get_by_user_id ( request_user_id ) . username as_username = None if sync_user_id and sync_user_id != request_user_id : as_user = CouchUser . get_by_user_id ( sync_user_id ) as_username = raw_username ( as_user . username ) if as_user else None return request_user , as_username