Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(8)  |  Derive(0)  |  Import(9)

src/c/a/captain-HEAD/vendor/lib/python/django_browserid/helpers.py   captain(Download)
from django.utils.safestring import mark_safe
 
from django_browserid.forms import (BROWSERID_SHIM, BrowserIDForm,
                                    FORM_CSS, FORM_JAVASCRIPT)
 
    at the top of the page just below the <body> tag.
    """
    form = BrowserIDForm(auto_id=False)
 
    # Force request_args to be a dictionary, in case it is lazily generated.

src/c/a/captain-HEAD/vendor/lib/python/django_browserid/context_processors.py   captain(Download)
 
from django_browserid import helpers
from django_browserid.forms import BrowserIDForm
 
 
    context.
    """
    form = BrowserIDForm(auto_id=False)
    return {
        'browserid_form': form,  # For custom buttons.

src/w/e/webpay-HEAD/webpay/auth/views.py   webpay(Download)
from django_browserid import (get_audience as get_aud_from_request,
                              verify as verify_assertion)
from django_browserid.forms import BrowserIDForm
from session_csrf import anonymous_csrf_exempt
 
def reverify(request):
    form = BrowserIDForm(data=request.POST)
    if form.is_valid():
        url = settings.BROWSERID_VERIFICATION_URL
        audience = get_audience(request)
def verify(request):
    form = BrowserIDForm(data=request.POST)
    if form.is_valid():
        url = settings.BROWSERID_VERIFICATION_URL
        audience = get_audience(request)

src/p/o/popcorn_maker-HEAD/vendor-local/lib/python/django_browserid/context_processors.py   popcorn_maker(Download)
from django_browserid.forms import BrowserIDForm
 
 
def browserid_form(request):
    """
    A context processor that adds a BrowserID form to the request
    """
    return {'browserid_form': BrowserIDForm()}

src/c/a/captain-HEAD/vendor/lib/python/django_browserid/views.py   captain(Download)
 
from django_browserid.base import BrowserIDException, get_audience, sanity_checks
from django_browserid.forms import BrowserIDForm
 
# Try to import funfactory's reverse and fall back to django's version.

src/e/d/editorsnotes-HEAD/editorsnotes/main/context_processors.py   editorsnotes(Download)
from django_browserid.forms import BrowserIDForm
 
def browserid(request):
    """
    A context processor necessary for BrowserID auth
    auth_backend = request.session.get('_auth_user_backend', None)
    return {
        'browserid_form': BrowserIDForm(),
        'browserid_authenticated': auth_backend == 'django_browserid.auth.BrowserIDBackend'
    }

src/p/o/popcorn_maker-HEAD/vendor-local/lib/python/django_browserid/views.py   popcorn_maker(Download)
from django.views.generic.edit import BaseFormView
 
from django_browserid.forms import BrowserIDForm
from django_browserid.base import get_audience
 

src/m/a/make.mozilla.org-HEAD/make_mozilla/users/views.py   make.mozilla.org(Download)
import jingo
 
from django_browserid.forms import BrowserIDForm
 
from make_mozilla.users.models import UserProfile

src/c/a/captain-HEAD/vendor/lib/python/django_browserid/tests/test_forms.py   captain(Download)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
from django_browserid.forms import BrowserIDForm
 
 
def test_invalid_assertion():
    form = BrowserIDForm({'assertion': u'\xe3'})
def test_valid_assertion():
    form = BrowserIDForm({'assertion': b'xxx'})
    assert form.is_valid()