X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fsampleviews.py;h=5e3c9420beb24e6936e78c210a64014dc6b4b356;hb=72e1b6fd2be568712a4be6eb5805e0f686030ea3;hp=33702e458362ddabb5168c4f01f06e9f9e506b76;hpb=9b89a32f1ae0a1e0618a9cc11138a766a4ba870b;p=unfold.git diff --git a/trash/sampleviews.py b/trash/sampleviews.py index 33702e45..5e3c9420 100644 --- a/trash/sampleviews.py +++ b/trash/sampleviews.py @@ -4,7 +4,7 @@ from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required -from engine.prelude import Prelude +from unfold.prelude import Prelude from myslice.viewutils import topmenu_items, the_user # tmp @@ -12,8 +12,8 @@ from myslice.viewutils import lorem, hard_wired_slice_names @login_required def tab_view (request): - prelude=Prelude( js_files='bootstrap/js/bootstrap.js', css_files='bootstrap/css/bootstrap.css') - prelude_env = prelude.template_env() + prelude=Prelude( js_files='js/bootstrap.js', css_files='css/bootstrap.css') + prelude_env = prelude.prelude_env() tab_env = {'title':'Page for playing with Tabs', 'topmenu_items': topmenu_items('tab',request), 'username':the_user (request), @@ -33,19 +33,3 @@ def scroll_view (request): }, context_instance=RequestContext(request)) -# we take name from the URL and propagate in the template -@login_required -def slice_view (request, name=None): - title='Fake Slice Page' - if name: title += " for slice %s"%name - result=render_to_response ('view-slice.html', - {'name':name, - 'title':title, - 'topmenu_items' : topmenu_items('slice',request), - 'username':the_user (request), - 'slices': hard_wired_slice_names, - 'content_main' : lorem, - }, - context_instance=RequestContext(request)) - - return result