Exemplo n.º 1
0
def unsubscribe_rec():
    if not env.owner or not env.owner.id:
        raise NotFound

    users.unsubscribe_rec(env.owner)

    if env.request.is_xhr:
        return Response(json.dumps({"ok": True}), mimetype="application/json")

    return Response(redirect=env.request.referer)
Exemplo n.º 2
0
def unsubscribe_rec():
    if not env.owner or not env.owner.id:
        raise NotFound

    users.unsubscribe_rec(env.owner)

    if env.request.is_xhr:
        return Response(json.dumps({'ok': True}), mimetype='application/json')

    return Response(redirect=env.request.referer)
Exemplo n.º 3
0
def unsubscribe_rec(login):
    users.unsubscribe_rec(login)
Exemplo n.º 4
0
def unsubscribe_rec(login):
    users.unsubscribe_rec(login)