svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2695
-DIRS = templates
-
-all: kill chmod compile
+all: kill chmod
chmod:
chgrp -R invirt . 2>/dev/null || true
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
+++ /dev/null
-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
+++ /dev/null
-__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)
-
+++ /dev/null
-#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