diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 02:04:07 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 02:04:07 +0200 |
commit | 58da186c812246821fc5959805e2fd34c6e8e14d (patch) | |
tree | 48c398f4a24b94ba7a6a1685705f13bcf9021158 /controller.py | |
parent | 9764086ee9cc10ad1fe7b7cc6f2be82145f843e3 (diff) | |
download | web-58da186c812246821fc5959805e2fd34c6e8e14d.tar.gz web-58da186c812246821fc5959805e2fd34c6e8e14d.tar.bz2 web-58da186c812246821fc5959805e2fd34c6e8e14d.zip |
appdir for redirects
Diffstat (limited to 'controller.py')
-rw-r--r-- | controller.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller.py b/controller.py index 7de70f1..e819862 100644 --- a/controller.py +++ b/controller.py @@ -1,6 +1,7 @@ from __future__ import with_statement import web +from helper import appdir from renderer import render class Page: @@ -17,7 +18,7 @@ class Redirect: """ redirects = {} - with open("redirects") as f: + with open(appdir("redirects")) as f: for line in f: name, url = line.split() redirects[name.strip()] = url.strip() |