Example #1
0
def unsubscribe():
    if not env.owner or not env.owner.id:
        raise NotFound

    users.unsubscribe(env.owner)

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

    return Response(redirect=env.request.referer)
Example #2
0
def unsubscribe(login):
    users.unsubscribe(login)
Example #3
0
def unsubscribe(login):
    users.unsubscribe(login)