Exemplo n.º 1
0
def get_recipients(request, parent):
    username = user_name(parent['user'])
    user_obj = get_user_by_name(request, username)
    if not user_obj:
        raise TemplateRenderException('User not found')
    return [user_obj.email]
Exemplo n.º 2
0
def get_recipients(request, data):
    username = user_name(data['parent']['user'])
    user_obj = get_user_by_name(request, username)
    if not user_obj:
        raise TemplateRenderException('User not found')
    return [user_obj.email]
Exemplo n.º 3
0
def get_recipients(request, parent):
    username = user_name(parent.userid)
    user_obj = get_user_by_name(request, username)
    if not user_obj:
        raise TemplateRenderException('User not found')
    return [user_obj.email]