]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - html/Redirect.py
Move http/html-related code to html subdirectory
[phdru.name/cgi-bin/blog-ru/search-tags.git] / html / Redirect.py
diff --git a/html/Redirect.py b/html/Redirect.py
new file mode 100644 (file)
index 0000000..13205b4
--- /dev/null
@@ -0,0 +1,10 @@
+
+from Cheetah.Tools.CGITemplate import CGITemplate
+
+class Redirect(CGITemplate):
+   def cgiHeadersHook(self):
+      return """\
+Content-Type: text/html
+Location: %s
+
+""" % self.url