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

All Samples(15)  |  Call(0)  |  Derive(9)  |  Import(6)

src/h/u/humfrey-0.3.9/humfrey/sparql/views/core.py   humfrey(Download)
from django.views.generic import View
 
from django_conneg.views import ContentNegotiatedView, HTMLView, JSONPView, TextView, ErrorCatchingView
 
from humfrey.linkeddata.views import MappingView
class SparqlErrorView(HTMLView, TextView):
    _default_format = 'txt'
    _force_fallback_format = 'txt'
 
    def get(self, request, context):

src/o/p/openorg-timeseries-0.1.1/openorg_timeseries/views/admin.py   openorg-timeseries(Download)
from django.db.models.query import QuerySet
from django.shortcuts import get_object_or_404
from django_conneg.views import JSONView, HTMLView, JSONPView, TextView
from django_conneg.http import HttpResponseSeeOther
#from django_conneg.support import login_required
class ErrorView(HTMLView, JSONPView, TextView):
    _force_fallback_format = 'json'
 
    def dispatch(self, request, context, template_name):
        template_name = (template_name, 'timeseries-admin/error')

src/o/p/openorg-timeseries-0.1.1/openorg_timeseries/views/endpoint.py   openorg-timeseries(Download)
from django.http import HttpResponse
 
from django_conneg.views import ContentNegotiatedView, HTMLView, TextView, JSONPView
from django_conneg.decorators import renderer
 
class ErrorView(HTMLView, JSONPView, TextView):
    _force_fallback_format = 'txt'
    _json_indent = 2
 
    def get(self, request, status_code, message):
class FetchView(JSONPView, TextView, TabularView):
    _json_indent = 1
 
    def get(self, request):
        try:

src/d/j/django-conneg-0.9.5/django_conneg/support/middleware.py   django-conneg(Download)
from django.contrib.auth import authenticate
from django_conneg.http import MediaType
from django_conneg.views import HTMLView, JSONPView, TextView
 
class UnauthorizedView(HTMLView, JSONPView, TextView):
class InactiveUserView(HTMLView, JSONPView, TextView):
    _force_fallback_format = 'txt'
    template_name = 'conneg/inactive_user'
 
    def get(self, request):

src/d/j/django-conneg-HEAD/django_conneg/support/middleware.py   django-conneg(Download)
from django.contrib.auth import authenticate
from django_conneg.http import MediaType
from django_conneg.views import HTMLView, JSONPView, TextView
 
class UnauthorizedView(HTMLView, JSONPView, TextView):
class InactiveUserView(HTMLView, JSONPView, TextView):
    _force_fallback_format = 'txt'
    template_name = 'conneg/inactive_user'
 
    def get(self, request):

src/d/a/dataox-HEAD/dataox/core/views.py   dataox(Download)
from __future__ import division
 
from django.conf import settings
from django_conneg.views import HTMLView, TextView
import rdflib
class MaintenanceModeView(HTMLView, TextView):
    template_name = '503'
    _force_fallback_format = 'txt'
 
    def dispatch(self, request):