X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Froot.py;h=261cdb1851ac7cd0cde00d56f9b839b3ef42c6ed;hp=0046ddf0e02acdc1601839729f5dad86c4856805;hb=d71af443d0178aeded3a6e65921292819f9f3b5b;hpb=14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb diff --git a/ipsilon/root.py b/ipsilon/root.py old mode 100755 new mode 100644 index 0046ddf..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,10 +37,12 @@ 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) cherrypy.config['error_page.401'] = errors.Error_401(self._site) + cherrypy.config['error_page.404'] = errors.Error_404(self._site) cherrypy.config['error_page.500'] = errors.Errors(self._site) # now set up the default login plugins @@ -59,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)