summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-03 18:21:53 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-03 18:21:53 +0200
commitf0012811f8af8b1334b46781861a6dd3777ee392 (patch)
treee59c3e5d141ecff244584ba786ce191497a9e311 /index.py
downloadkosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.gz
kosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.bz2
kosten-f0012811f8af8b1334b46781861a6dd3777ee392.zip
First import from portato proj
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/index.py b/index.py
new file mode 100755
index 0000000..b91418d
--- /dev/null
+++ b/index.py
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+
+import web
+import controller
+
+#
+# URL Mappings
+#
+urls = (
+ "/r/(.*)", controller.Redirect,
+ "/(.*)", controller.Page
+ )
+
+#
+# The App
+#
+app = web.application(urls, globals())
+app.notfound = controller.FourOhFour
+
+# debug for the moment
+web.config.debug = True
+
+#
+# And go!
+if __name__ == "__main__":
+ app.run()