def get(self): nav, subnav = iati2lod_navigation.navigation() nav = nav.replace('<a href="/model">', '<a id="select" href="/model">') subnav = subnav['Model'].replace('<a href="/model/visualizations">', '<a id="select" href="/model/visualizations">') activities, organisations, codelists, provenance = get_model_names() model = self.request.get_all("viz") if model == []: values = {"activities": activities, "organisations": organisations, "codelists": codelists, "provenance": provenance, "nav": nav, "subnav": subnav} self.response.out.write(template.render('model-visualizations.html', values)) else: values = {"modelname": model[0], "model": model[0].replace(" ","-"), "nav": nav, "subnav": subnav} self.response.out.write(template.render('model-viz.html', values))
def get(self): nav, subnav = iati2lod_navigation.navigation() nav = nav.replace('<a href="/">', '<a id="select" href="/">') subnav = subnav['Home'].replace('<a href="/">', '<a id="select" href="/">') values = {"nav": nav, "subnav": subnav} self.response.out.write(template.render('main.html', values))
def get(self): nav, subnav = iati2lod_navigation.navigation() nav = nav.replace('<a href="/model">', '<a id="select" href="/model">') subnav = subnav['Model'].replace('<a href="/model/activities">', '<a id="select" href="/model/activities">') contents = get_contents() index = create_index(contents) values = {"type":'Activities', "contents": contents, "index": index, "nav": nav, "subnav": subnav} self.response.out.write(template.render('model-description.html', values))