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

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/d/j/django-oauth2-provider-0.2.6.1/provider/scope.py   django-oauth2-provider(Download)
"""
 
from .constants import SCOPES
 
SCOPE_NAMES = [(name, name) for (value, name) in SCOPES]
SCOPE_NAME_DICT = dict([(name, value) for (value, name) in SCOPES])
SCOPE_VALUE_DICT = dict([(value, name) for (value, name) in SCOPES])

src/d/j/django-oauth2-provider-0.2.6.1/provider/oauth2/forms.py   django-oauth2-provider(Download)
from django.utils.translation import ugettext as _
from .. import scope
from ..constants import RESPONSE_TYPE_CHOICES, SCOPES
from ..forms import OAuthForm, OAuthValidationError
from ..scope import SCOPE_NAMES
 
        """
        default = SCOPES[0][0]
 
        flags = self.cleaned_data.get('scope', [])

src/d/j/django-oauth2-provider-HEAD/provider/scope.py   django-oauth2-provider(Download)
"""
 
from .constants import SCOPES
 
SCOPE_NAMES = [(name, name) for (value, name) in SCOPES]
SCOPE_NAME_DICT = dict([(name, value) for (value, name) in SCOPES])
SCOPE_VALUE_DICT = dict([(value, name) for (value, name) in SCOPES])

src/d/j/django-oauth2-provider-HEAD/provider/oauth2/forms.py   django-oauth2-provider(Download)
from django.utils.translation import ugettext as _
from .. import scope
from ..constants import RESPONSE_TYPE_CHOICES, SCOPES
from ..forms import OAuthForm, OAuthValidationError
from ..scope import SCOPE_NAMES
 
        """
        default = SCOPES[0][0]
 
        flags = self.cleaned_data.get('scope', [])