# just one instance of validator from django.views.generic.base import TemplateView from django.template import RequestContext from django.shortcuts import render_to_response from manifold.core.query import Query, AnalyzedQuery from unfold.page import Page from ui.topmenu import topmenu_items_live, the_user class TopmenuValidationView (TemplateView): # mention a user name in the URL as .../trash/simpletopmenuvalidation/ple.inria.thierry_parmentelat def get (self, request, username='ple.inria.thierry_parmentelat'): if username=='logged': username='$user_hrn' page=Page(request) # variables that will get passed to the view-unfold1.html template template_env = {} # write something of our own instead template_env ['unfold_main'] = '