comparison makeitso/makeitso.py @ 113:c3b8ce33d3ad

make variable getting logic a little less horrible
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 17 Jan 2011 14:32:07 -0800
parents 51c9cb49edec
children b8d5d2041fe0
comparison
equal deleted inserted replaced
112:51c9cb49edec 113:c3b8ce33d3ad
319 template = URITemplate(path, interactive=False) 319 template = URITemplate(path, interactive=False)
320 template.substitute(vars, target) 320 template.substitute(vars, target)
321 321
322 322
323 class PolyTemplate(ContentTemplate): 323 class PolyTemplate(ContentTemplate):
324 """template for several files/directories""" 324 """aggregate templates"""
325 325
326 def __init__(self, templates, interactive=True, variables=None): 326 def __init__(self, templates, interactive=True, variables=None):
327 self.interactive = interactive 327 self.interactive = interactive
328 self.templates = [] 328 self.templates = []
329 entry_points = get_entry_points() 329 entry_points = get_entry_points()