Exemplo n.º 1
0
def paypal_start(request, addon=None):
    download = urlparse(request.GET.get("realurl", "")).path
    data = {"addon": addon, "is_ajax": request.is_ajax(), "download": download}

    if request.user.is_authenticated():
        return jingo.render(request, "addons/paypal_start.html", data)

    from users.views import _login

    return _login(request, data=data, template="addons/paypal_start.html", dont_redirect=True)
Exemplo n.º 2
0
def paypal_start(request, addon=None):
    download = urlparse(request.GET.get('realurl', '')).path
    data = {'addon': addon, 'is_ajax': request.is_ajax(),
            'download': download}

    if request.user.is_authenticated():
        return jingo.render(request, 'addons/paypal_start.html', data)

    from users.views import _login
    return _login(request, data=data, template='addons/paypal_start.html',
                  dont_redirect=True)
Exemplo n.º 3
0
def login(request, template=None):
    return _login(request, template='developers/login.html')