diff roundup/cgi/engine_chameleon.py @ 4739:94be76e04140

templating: Move template selection logic from the template loaders to the client.
author anatoly techtonik <techtonik@gmail.com>
date Mon, 14 Jan 2013 20:25:00 +0300
parents d82ce9ad8044
children fe9568a6cbd6
line wrap: on
line diff
--- a/roundup/cgi/engine_chameleon.py	Mon Jan 14 19:57:42 2013 +0300
+++ b/roundup/cgi/engine_chameleon.py	Mon Jan 14 20:25:00 2013 +0300
@@ -13,10 +13,6 @@
         self.loader = chameleon.PageTemplateLoader(dir)
 
     def load(self, name, view=None):
-        # default the name to "home"
-        if name is None:
-            name = 'home'
-
         src, filename = find_template(self.dir, name, view)
         return RoundupPageTemplate(self.loader.load(src))
 

Roundup Issue Tracker: http://roundup-tracker.org/