diff makeitso/makeitso.py @ 31:17f46f0e0a4a

stub of using classes for this
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 22 Dec 2010 15:27:13 -0800
parents 1549be7f0fcb
children 9422d4ad6c2c
line wrap: on
line diff
--- 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