Remove unused template code
authorQuentin Smith <quentin@mit.edu>
Tue, 29 Sep 2009 19:52:40 +0000 (15:52 -0400)
committerQuentin Smith <quentin@mit.edu>
Tue, 29 Sep 2009 19:52:40 +0000 (15:52 -0400)
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2695

code/Makefile
code/templates/Makefile [deleted file]
code/templates/__init__.py [deleted file]
code/templates/create.tmpl [deleted file]

index b114e86..c406438 100644 (file)
@@ -1,6 +1,4 @@
-DIRS = templates
-
-all: kill chmod compile
+all: kill chmod
 
 chmod:
        chgrp -R invirt . 2>/dev/null || true
@@ -8,13 +6,3 @@ chmod:
 
 kill:
        -pkill main.fcgi
-
-compile:
-       for dir in $(DIRS); do \
-               (cd $$dir; $(MAKE) all); \
-       done
-
-clean:
-       for dir in $(DIRS); do \
-               (cd $$dir; $(MAKE) clean); \
-       done
diff --git a/code/templates/Makefile b/code/templates/Makefile
deleted file mode 100644 (file)
index aa083e2..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATES=$(wildcard *.tmpl)
-OUTPUTS=$(TEMPLATES:.tmpl=.py)
-
-all: ${OUTPUTS}
-
-%.py: %.tmpl
-       cheetah compile $<
-
-#${OUTPUTS}:${TEMPLATES}
-#      cheetah compile $^
-
-clean:
-       @rm -f ${OUTPUTS} *.pyo *.pyc *.py.bak
diff --git a/code/templates/__init__.py b/code/templates/__init__.py
deleted file mode 100644 (file)
index b2b23da..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-__all__ = 'info command error error_raw help invalid list unauth vnc'.split()
-for _name in __all__:
-    try:
-        _module = __import__(_name, globals(), {}, [_name])
-        globals()[_name] = getattr(_module, _name)
-    except ImportError, e:
-        import sys
-        print >> sys.stderr, 'Importing template "%s" raised error: %s' % (_name, e)
-        
diff --git a/code/templates/create.tmpl b/code/templates/create.tmpl
deleted file mode 100644 (file)
index 8123d23..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#from skeleton import skeleton
-#extends skeleton
-
-#def title
-Created!
-#end def
-
-#def body
-#if $machine
-<p>Congratulations!  You have a new machine named ${machine.name}.</p>
-#else
-<p>Odd... no error, but no machine.</p>
-#end if
-<p><a href="list">Return</a></p>
-#end def