summaryrefslogtreecommitdiff
path: root/helper.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 /helper.py
downloadkosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.gz
kosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.bz2
kosten-f0012811f8af8b1334b46781861a6dd3777ee392.zip
First import from portato proj
Diffstat (limited to '')
-rw-r--r--helper.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/helper.py b/helper.py
new file mode 100644
index 0000000..69d6ab2
--- /dev/null
+++ b/helper.py
@@ -0,0 +1,16 @@
+import web
+import os
+import cStringIO
+
+opj = os.path.join
+
+# some nice imports
+import itertools as it
+
+
+APPDIR = os.path.dirname(os.path.abspath(__file__))
+def appdir (*args):
+ return os.path.join(APPDIR, *args)
+
+def url (path):
+ return "\"%s\"" % web.url(path)