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

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

src/p/i/piecrust-HEAD/piecrust/resources.py   piecrust(Download)
from piecrust.throttle import BaseThrottle
from piecrust.uris import UriHandler
from piecrust.utils import is_valid_jsonp_callback_value, dict_strip_unicode_keys, trailing_slash
from piecrust.utils.mime import determine_format, build_content_type
from piecrust.validation import Validation
            callback = request.GET.get('callback', 'callback')
 
            if not is_valid_jsonp_callback_value(callback):
                raise BadRequest('JSONP callback name is invalid.')
 

src/p/i/piecrust-HEAD/piecrust/api.py   piecrust(Download)
import warnings
from piecrust.exceptions import ImproperlyConfigured, NotRegistered, BadRequest
from piecrust.http import ResponseGenerator, HttpOK
from piecrust.serializers import Serializer
from piecrust.utils import is_valid_jsonp_callback_value
            callback = request.GET.get('callback', 'callback')
 
            if not is_valid_jsonp_callback_value(callback):
                raise BadRequest('JSONP callback name is invalid.')