# HG changeset patch # User Jeff Hammel # Date 1293060433 28800 # Node ID 17f46f0e0a4a7ca7d606a9287d016b38af352b85 # Parent 1549be7f0fcbfaff60778fe6198add8671007812 stub of using classes for this diff -r 1549be7f0fcb -r 17f46f0e0a4a makeitso/makeitso.py --- a/makeitso/makeitso.py Wed Dec 22 14:34:20 2010 -0800 +++ b/makeitso/makeitso.py Wed Dec 22 15:27:13 2010 -0800 @@ -82,6 +82,7 @@ ### things that deal with variables +# XXX duplicated in URITemplate namespace....don't need two defaults = {'include': include} class MissingVariablesException(Exception): @@ -89,6 +90,21 @@ def __init__(self, message, missing): self.missing = missing +class ContentTemplate(tempita.Template): + """MakeItSo's extension of tempita's Template class""" + defaults = {'include': include} + def __init__(self): + raise NotImplementedError + +class URITemplate(tempita.Template): + + def __init__(self): + raise NotImplementedError + +class DirectoryTemplate(tempita.Template): + def __init__(self): + raise NotImplementedError + def get_missing(name_error): """ This is a horrible hack because python doesn't do the proper thing