diff roundup/cgi/engine_chameleon.py @ 4720:fd72576e07ed

API break: rename Templates to Loader for zopetal and chameleon engines.
author anatoly techtonik <techtonik@gmail.com>
date Sun, 06 Jan 2013 16:36:33 +0300
parents 05fe39f1d823
children 5033c2ad80a7
line wrap: on
line diff
--- a/roundup/cgi/engine_chameleon.py	Sun Jan 06 16:02:45 2013 +0300
+++ b/roundup/cgi/engine_chameleon.py	Sun Jan 06 16:36:33 2013 +0300
@@ -3,14 +3,14 @@
 __docformat__ = 'restructuredtext'
 
 import os.path
-from chameleon import PageTemplateLoader
+import chameleon
 
 from roundup.cgi.templating import StringIO, context, find_template, LoaderBase
 
-class Templates(LoaderBase):
+class Loader(LoaderBase):
     def __init__(self, dir):
         self.dir = dir
-        self.loader = PageTemplateLoader(dir)
+        self.loader = chameleon.PageTemplateLoader(dir)
 
     def get(self, name, extension=None):
         # default the name to "home"

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