@login_required
def password_delete(request, **kwargs):

    template_name = kwargs.pop("template_name", "account/password_delete.html")

    # prevent this view when openids is not present or it is empty.
    if not request.user.password or \
        (not hasattr(request, "openids") and
            not getattr(request, "openids", None)):
        return HttpResponseForbidden()

    group, bridge = group_and_bridge(kwargs)

    if request.method == "POST":
        request.user.password = u""
        request.user.save()
        return HttpResponseRedirect(reverse("acct_passwd_delete_done"))

    ctx = group_context(group, bridge)

    return render_to_response(template_name, RequestContext(request, ctx))
dataset/ETHPy150Open amarandon/smeuhsocial/apps/account/views.py/password_delete/operator `or` -> `and`