X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bb68c8efe90a6f818c2c26f36ef0e02c91ed6158..655e8e9cc4d5e70d59ca19a809fbed51fa10d921:/apps/debug_toolbar/panels/http_vars.py?ds=sidebyside diff --git a/apps/debug_toolbar/panels/http_vars.py b/apps/debug_toolbar/panels/http_vars.py deleted file mode 100644 index 2bf1789c6..000000000 --- a/apps/debug_toolbar/panels/http_vars.py +++ /dev/null @@ -1,24 +0,0 @@ -from debug_toolbar.panels import DebugPanel -from django.template.loader import render_to_string - -class HttpVarsDebugPanel(DebugPanel): - """ - A panel to display HTTP variables (POST/GET). - """ - name = 'HttpVars' - # List of headers we want to display - - def title(self): - return 'HTTP Globals' - - def url(self): - return '' - - def content(self): - context = { - 'get': [(k, self.request.GET.getlist(k)) for k in self.request.GET.iterkeys()], - 'post': [(k, self.request.POST.getlist(k)) for k in self.request.POST.iterkeys()], - 'session': [(k, self.request.session.get(k)) for k in self.request.session.iterkeys()], - 'cookies': [(k, self.request.COOKIES.get(k)) for k in self.request.COOKIES.iterkeys()], - } - return render_to_string('debug_toolbar/panels/http_vars.html', context) \ No newline at end of file