X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Froot.py;h=261cdb1851ac7cd0cde00d56f9b839b3ef42c6ed;hp=b2654ac05d7d0b78b8aa072871b90cc5b2674427;hb=d71af443d0178aeded3a6e65921292819f9f3b5b;hpb=907d40cac424c9c7bf3a190b445858bc6eab949e diff --git a/ipsilon/root.py b/ipsilon/root.py old mode 100755 new mode 100644 index b2654ac..261cdb1 --- a/ipsilon/root.py +++ b/ipsilon/root.py @@ -1,5 +1,3 @@ -#!/usr/bin/python -# # Copyright (C) 2013 Simo Sorce # # see file 'COPYING' for use and warranty information @@ -39,6 +37,7 @@ class Root(Page): if template_env: sites[site]['template_env'] = template_env super(Root, self).__init__(sites[site]) + self.html_heads = dict() # set up error pages cherrypy.config['error_page.400'] = errors.Error_400(self._site) @@ -60,4 +59,6 @@ class Root(Page): ProviderPlugins(self._site, self.admin) def root(self): - return self._template('index.html', title='Ipsilon') + self.debug(self.html_heads) + return self._template('index.html', title='Ipsilon', + heads=self.html_heads)