Mercurial > hg > MakeItSo
diff makeitso/makeitso.py @ 76:7909dfaef33b
note about adding more metadata
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 08 Jan 2011 10:53:17 -0800 |
parents | b91133e3b02d |
children | 2c1310e94645 |
line wrap: on
line diff
--- a/makeitso/makeitso.py Fri Jan 07 18:18:42 2011 -0800 +++ b/makeitso/makeitso.py Sat Jan 08 10:53:17 2011 -0800 @@ -202,7 +202,11 @@ content = os.linesep.join(content.splitlines()[1:]) variables = variables or {} - variables['here'] = parent_uri(uri) + if 'here' not in variables: + variables['here'] = parent_uri(uri) + # TODO: could add other metadata about the uri, + # such as last modification time' + ContentTemplate.__init__(self, content, name=uri, interactive=interactive, variables=variables)