Mercurial > p > roundup > code
comparison roundup/cgi/engine_chameleon.py @ 4719:05fe39f1d823
API break, bumping version to 1.15.0, renamed TemplatesBase to
LoaderBase to correctly reflect semantics and avoid confusion.
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Sun, 06 Jan 2013 16:02:45 +0300 |
| parents | 45ac4cd1a381 |
| children | fd72576e07ed |
comparison
equal
deleted
inserted
replaced
| 4718:76b71c9bd50d | 4719:05fe39f1d823 |
|---|---|
| 3 __docformat__ = 'restructuredtext' | 3 __docformat__ = 'restructuredtext' |
| 4 | 4 |
| 5 import os.path | 5 import os.path |
| 6 from chameleon import PageTemplateLoader | 6 from chameleon import PageTemplateLoader |
| 7 | 7 |
| 8 from roundup.cgi.templating import StringIO, context, find_template, TemplatesBase | 8 from roundup.cgi.templating import StringIO, context, find_template, LoaderBase |
| 9 | 9 |
| 10 class Templates(TemplatesBase): | 10 class Templates(LoaderBase): |
| 11 def __init__(self, dir): | 11 def __init__(self, dir): |
| 12 self.dir = dir | 12 self.dir = dir |
| 13 self.loader = PageTemplateLoader(dir) | 13 self.loader = PageTemplateLoader(dir) |
| 14 | 14 |
| 15 def get(self, name, extension=None): | 15 def get(self, name, extension=None): |
