Migrated issue, originally created by Anonymous
Thu Jan 11 19:38:52 JST 2007 davidsmith@acm.org
- If template directories is a string, wrap it as a list.
diff -rN -b -u old-mako/lib/mako/lookup.py new-mako/lib/mako/lookup.py
--- old-mako/lib/mako/lookup.py 2007-01-11 19:39:40.000000000 +0900
+++ new-mako/lib/mako/lookup.py 2007-01-11 19:39:40.000000000 +0900
@@ -38,6 +38,8 @@
class TemplateLookup(TemplateCollection):
def init(self, directories=None, module_directory=None, filesystem_checks=True, collection_size=-1, format_exceptions=False, error_handler=None, output_encoding=None, cache_type=None, cache_dir=None):
-
if isinstance(directories, basestring):
-
directories = [directories]
self.directories = [posixpath.normpath(d) for d in directories or []]
self.module_directory = module_directory
self.filesystem_checks = filesystem_checks
Attachments: mako.templates.patch
Migrated issue, originally created by Anonymous
Thu Jan 11 19:38:52 JST 2007 davidsmith@acm.org
diff -rN -b -u old-mako/lib/mako/lookup.py new-mako/lib/mako/lookup.py
--- old-mako/lib/mako/lookup.py 2007-01-11 19:39:40.000000000 +0900
+++ new-mako/lib/mako/lookup.py 2007-01-11 19:39:40.000000000 +0900
@@ -38,6 +38,8 @@
class TemplateLookup(TemplateCollection):
def init(self, directories=None, module_directory=None, filesystem_checks=True, collection_size=-1, format_exceptions=False, error_handler=None, output_encoding=None, cache_type=None, cache_dir=None):
Attachments: mako.templates.patch