TMP fix: base.html template Query myslice:user is faster than user
[myslice.git] / portal / slicetabinfo.py
1 from django.template                 import RequestContext
2 from django.shortcuts                import render_to_response
3
4 from manifold.core.query             import Query, AnalyzedQuery
5 from manifoldapi.manifoldapi         import execute_query
6
7 from django.views.generic.base      import TemplateView
8
9 from unfold.loginrequired           import LoginRequiredView
10 from django.http import HttpResponse
11 from django.shortcuts import render
12
13 from unfold.page                     import Page
14 from manifold.core.query             import Query, AnalyzedQuery
15 from manifoldapi.manifoldapi         import execute_query
16
17 from myslice.theme import ThemeView
18
19 class SliceInfoView (LoginRequiredView, ThemeView):
20     template_name = "slice-tab-info.html"
21     
22     def get(self, request, slicename):
23         return render_to_response(self.template, {"slice": slicename, "theme": self.theme, "username": request.user, "section":"slice"}, context_instance=RequestContext(request))