New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap directories in a list if it is a string #9

sqlalchemy-bot opened this Issue Jan 11, 2007 · 2 comments


None yet
1 participant

sqlalchemy-bot commented Jan 11, 2007

Migrated issue, originally created by Anonymous

Thu Jan 11 19:38:52 JST 2007

  • If template directories is a string, wrap it as a list.
    diff -rN -b -u old-mako/lib/mako/ new-mako/lib/mako/
    --- old-mako/lib/mako/ 2007-01-11 19:39:40.000000000 +0900
    +++ new-mako/lib/mako/ 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


This comment has been minimized.

sqlalchemy-bot commented Jan 11, 2007

Michael Bayer (@zzzeek) wrote:

thanks, [changeset:184]


This comment has been minimized.

sqlalchemy-bot commented Jan 11, 2007

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment