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

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

src/h/u/humfrey-0.3.9/humfrey/desc/views.py   humfrey(Download)
from django_conneg import decorators
from django_conneg.views import HTMLView, ContentNegotiatedView
from django_conneg.http import HttpResponseSeeOther, HttpResponseTemporaryRedirect, MediaType
 
from humfrey.linkeddata.resource import Resource, IRI
                break
 
        return HttpResponseSeeOther(description_url)
 
    def override_redirect(self, request, description_url, mimetypes):
            return HttpResponseTemporaryRedirect(unicode(uri))
        elif request.GET.get('source') == 'purl':
            return HttpResponseSeeOther(doc_forward(uri, described=True))
        elif self.get_types(uri):
            return HttpResponsePermanentRedirect(doc_forward(uri, described=True))

src/h/u/humfrey-HEAD/humfrey/desc/views.py   humfrey(Download)
from django_conneg import decorators
from django_conneg.views import HTMLView, ContentNegotiatedView
from django_conneg.http import HttpResponseSeeOther, HttpResponseTemporaryRedirect, MediaType
 
from humfrey.linkeddata.resource import Resource, IRI
                break
 
        return HttpResponseSeeOther(description_url)
 
    def override_redirect(self, request, description_url, mimetypes):
            return HttpResponseTemporaryRedirect(unicode(uri))
        elif request.GET.get('source') == 'purl':
            return HttpResponseSeeOther(doc_forward(uri, described=True))
        elif self.get_types(uri):
            return HttpResponsePermanentRedirect(doc_forward(uri, described=True))

src/h/u/humfrey-0.3.9/humfrey/update/views.py   humfrey(Download)
 
from django_conneg.views import HTMLView, JSONView
from django_conneg.http import HttpResponseSeeOther
 
from object_permissions import get_users_any
                    getattr(form.instance, '%s_users' % perm).add(request.user)
 
        return HttpResponseSeeOther(form.instance.get_absolute_url())
 
    @method_decorator(login_required)
        if context['form'].is_valid():
            context['form'].save()
            return HttpResponseSeeOther(context['form'].instance.get_absolute_url())
        return self.get(request, context)
 
        elif request.POST.get('action') == 'delete':
            return self.delete(request, name, context)
        return HttpResponseSeeOther('')
 
    @method_decorator(login_required)
            raise PermissionDenied
        context['local_file'].delete()
        return HttpResponseSeeOther(reverse('update:file-list'))
 
class UpdateLogView(HTMLView, JSONView):

src/h/u/humfrey-0.3.9/humfrey/elasticsearch/views.py   humfrey(Download)
from django.conf import settings
from django_conneg.decorators import renderer
from django_conneg.http import HttpResponseSeeOther
from django_conneg.views import HTMLView, JSONPView, ErrorCatchingView
from rdflib import URIRef
                query['page'] = context['page_count']
                query = urllib.urlencode(query)
                return HttpResponseSeeOther('{path}?{query}'.format(path=request.path,
                                                                    query=query))
 

src/h/u/humfrey-HEAD/humfrey/update/views.py   humfrey(Download)
 
from django_conneg.views import HTMLView, JSONView
from django_conneg.http import HttpResponseSeeOther
 
from guardian.shortcuts import get_objects_for_user, get_perms, assign_perm
                    getattr(form.instance, '%s_users' % perm).add(request.user)
 
        return HttpResponseSeeOther(form.instance.get_absolute_url())
 
    @method_decorator(login_required)

src/h/u/humfrey-HEAD/humfrey/feeds/base.py   humfrey(Download)
from django.utils.decorators import classonlymethod
from django_conneg.decorators import renderer
from django_conneg.http import HttpResponseSeeOther
from django_conneg.views import HTMLView
 
            return self.render()
        else:
            return HttpResponseSeeOther(self.context['config_url'])
 
    def get_query(self, query_context):

src/h/u/humfrey-HEAD/humfrey/elasticsearch/views.py   humfrey(Download)
from django.http import HttpResponse
from django_conneg.decorators import renderer
from django_conneg.http import HttpResponseSeeOther
from django_conneg.views import HTMLView, JSONPView
import rdflib
                query['page'] = context['page_count']
                query = urllib.urlencode(query)
                return HttpResponseSeeOther('{path}?{query}'.format(path=request.path,
                                                                    query=query))
 

src/o/p/openorg-timeseries-0.1.1/openorg_timeseries/views/admin.py   openorg-timeseries(Download)
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
import pytz
            form.errors['slug'] = ErrorList(["A time-series with this slug already exists."])
            return self.get(request, context)
        return HttpResponseSeeOther(time_series.get_admin_url())
 
class SecureView(View):
            if context.get('update-successful'):
                query['updated'] = 'true'
            return HttpResponseSeeOther('%s?%s' % (series.get_admin_url(), urllib.urlencode(query)))
 
        context['status_code'] = httplib.OK if successful else httplib.BAD_REQUEST

src/d/a/dataox-HEAD/dataox/equipment/views.py   dataox(Download)
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django_conneg.http import HttpResponseSeeOther
from django_conneg.views import HTMLView
from django_hosts import reverse_full
                                        'Reply-To': request.user.email})
        message.send(fail_silently=False)
        return HttpResponseSeeOther("?submitted=true")
 
class SearchView(EquipmentView, elasticsearch_views.SearchView):