Skip to content
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

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

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

sqlalchemy-bot opened this issue Jan 11, 2007 · 2 comments
Labels
bug Something isn't working lookup low priority

Comments

@sqlalchemy-bot
Copy link

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

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

thanks, [changeset:184]

@sqlalchemy-bot
Copy link
Author

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
Labels
bug Something isn't working lookup low priority
Projects
None yet
Development

No branches or pull requests

1 participant