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

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

src/h/u/humfrey-0.3.9/humfrey/update/views.py   humfrey(Download)
        }
 
        return self.render(request, context, 'update/index')
 
class DefinitionDetailView(HTMLView):
            raise PermissionDenied
 
        return self.render(request, context, 'update/definition-detail')
 
    @method_decorator(login_required)
 
        if not (form.is_valid() and pipelines.is_valid()):
            return self.render(request, context, 'update/definition-detail')
 
        form.save()
        if obj.can_delete(request.user):
            obj.delete()
            return self.render(request, {'object': obj}, 'update/definition-deleted')
        else:
            raise PermissionDenied
            context = {'success': True,
                       'object': obj}
        return self.render(request, context, 'update/definition-queued')
 
class FileListView(HTMLView, JSONView):

src/h/u/humfrey-HEAD/humfrey/update/views.py   humfrey(Download)
        }
 
        return self.render(request, context, 'update/index')
 
class DefinitionDetailView(HTMLView):
    def get(self, request, slug=None):
        self.common(request, slug)
        if 'view_updatedefinition' not in self.context['perms']:
            raise PermissionDenied
        return self.render()
 
        if not (form.is_valid() and pipelines.is_valid()):
            return self.render()
 
        form.save()
    def delete(self, request, slug=None):
        self.common(request, slug)
        if 'delete_updatedefinition' in self.context['perms']:
            self.context['object'].delete()
            return self.render(template_name='update/definition-deleted')
                                 'success': True,
                                 'update_log': update_log})
        return self.render(template_name='update/definition-queued')
 
 

src/h/u/humfrey-0.3.9/humfrey/misc/views.py   humfrey(Download)
            if template_name.endswith('.html'):
                template_name = template_name[:-5]
            return self.render(request, context, 'index')
 
 
    def get(self, request):
        return self.render(request, self.context.copy(), self.template_name)
 
class PassThroughView(View):
    def get_target_url(self, request, *args, **kwargs):

src/h/u/humfrey-HEAD/humfrey/misc/views.py   humfrey(Download)
            if template_name.endswith('.html'):
                template_name = template_name[:-5]
            return self.render(request, context, 'index')
 
 
    def get(self, request):
        return self.render(request, self.context.copy(), self.template_name)
 
class PassThroughView(View):
    def get_target_url(self, request, *args, **kwargs):

src/h/u/humfrey-0.3.9/humfrey/manage/views.py   humfrey(Download)
    def get(self, request):
        context = {}
        return self.render(request, context, 'manage/index')
 

src/o/p/openorg-timeseries-0.1.1/openorg_timeseries/views/endpoint.py   openorg-timeseries(Download)
    def get(self, request):
        return self.render(request, {}, 'timeseries/index')
 
class ErrorView(HTMLView, JSONPView, TextView):
    _force_fallback_format = 'txt'
            'renderers': renderers,
        }
        return self.render(request, context, 'timeseries/documentation')
 

src/h/u/humfrey-HEAD/humfrey/manage/views.py   humfrey(Download)
    def get(self, request):
        context = {}
        return self.render(request, context, 'manage/index')
 

src/d/a/dataox-HEAD/dataox/old_feeds/views.py   dataox(Download)
    def get(self, request):
        return self.render(request, {}, 'old_feeds/index')
 
class FeedView(HTMLView, JSONPView):
    title = None

src/d/a/dataox-HEAD/dataox/core/views.py   dataox(Download)
    def get(self, request, slug):
        return self.render(request, {}, 'examples/%s' % slug)
 
class ForbiddenView(HTMLView):
    template_name = 'forbidden'