Use the compiled Cheetah templates.
[invirt/packages/invirt-web.git] / templates / templates.py
diff --git a/templates/templates.py b/templates/templates.py
new file mode 100644 (file)
index 0000000..8e94be7
--- /dev/null
@@ -0,0 +1,9 @@
+__all__ = 'info command error help invalid list 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)
+