From 4372685b99ad4da8d734ad20a65ba693654d746e Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Tue, 29 Sep 2009 15:52:40 -0400 Subject: [PATCH] Remove unused template code svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2695 --- code/Makefile | 14 +------------- code/templates/Makefile | 13 ------------- code/templates/__init__.py | 9 --------- code/templates/create.tmpl | 15 --------------- 4 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 code/templates/Makefile delete mode 100644 code/templates/__init__.py delete mode 100644 code/templates/create.tmpl diff --git a/code/Makefile b/code/Makefile index b114e86..c406438 100644 --- a/code/Makefile +++ b/code/Makefile @@ -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 index aa083e2..0000000 --- a/code/templates/Makefile +++ /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 index b2b23da..0000000 --- a/code/templates/__init__.py +++ /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 index 8123d23..0000000 --- a/code/templates/create.tmpl +++ /dev/null @@ -1,15 +0,0 @@ -#from skeleton import skeleton -#extends skeleton - -#def title -Created! -#end def - -#def body -#if $machine -

Congratulations! You have a new machine named ${machine.name}.

-#else -

Odd... no error, but no machine.

-#end if -

Return

-#end def -- 1.7.9.5