Mercurial > hg > MakeItSo
changeset 76:7909dfaef33b
note about adding more metadata
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 08 Jan 2011 10:53:17 -0800 |
parents | ec35e5763b52 |
children | 059b02808efa |
files | makeitso/makeitso.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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)