make glob() in templates return a list

This commit is contained in:
Will Woods 2011-06-30 17:54:02 -04:00
parent 2e8d5c78b8
commit 416b7eef57

View File

@ -108,7 +108,7 @@ class LoraxTemplateRunner(object):
self.templatedir = templatedir self.templatedir = templatedir
# some builtin methods # some builtin methods
self.builtins = DataHolder(exists=lambda p: rexists(p, root=inroot), self.builtins = DataHolder(exists=lambda p: rexists(p, root=inroot),
glob=lambda g: rglob(g, root=inroot)) glob=lambda g: list(rglob(g, root=inroot)))
self.defaults = defaults self.defaults = defaults
self.results = DataHolder(treeinfo=dict()) # just treeinfo for now self.results = DataHolder(treeinfo=dict()) # just treeinfo for now