TEMP FIX: request new authority not denied
[myslice.git] / sample / tabview.py
1 from django.core.context_processors import csrf
2 from django.template import RequestContext
3 from django.shortcuts import render_to_response
4 from django.contrib.auth.decorators import login_required
5
6 from unfold.prelude import Prelude
7
8 from ui.topmenu import topmenu_items, the_user
9 # tmp
10 from trashutils import lorem, hard_wired_slice_names
11
12 @login_required
13 def tab_view (request):
14     print "request", request.__class__
15     print request
16     prelude=Prelude( js_files='js/bootstrap.js', css_files='css/bootstrap.css')
17
18     tab_env = {'title':'Page for playing with Tabs',
19                'topmenu_items': topmenu_items('tab',request),
20                'username':the_user (request),
21                'lorem': lorem,                                
22                }
23
24     tab_env.update (prelude.prelude_env())
25     return render_to_response ('view-tab.html', tab_env,
26                                context_instance=RequestContext(request))
27