summaryrefslogtreecommitdiff
path: root/coip/utils.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-04-05 13:03:02 +0200
committerLeif Johansson <leifj@sunet.se>2012-04-05 13:03:02 +0200
commit675b5f5e111061e4bdad37d8724d77cd25a02575 (patch)
tree85df3d2404ef23ec3591362fd0f8bff8194b8ef8 /coip/utils.py
parent22bd40bdb993f7174a18b1b6326578b443885d1a (diff)
djangosaml2
Diffstat (limited to 'coip/utils.py')
-rw-r--r--coip/utils.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/coip/utils.py b/coip/utils.py
new file mode 100644
index 0000000..f340721
--- /dev/null
+++ b/coip/utils.py
@@ -0,0 +1,11 @@
+'''
+Created on Apr 5, 2012
+
+@author: leifj
+'''
+
+def get_full_path(request,path=None):
+ if path == None:
+ path = request.path
+ full_path = ('http', ('', 's')[request.is_secure()], '://', request.META['HTTP_HOST'], path)
+ return ''.join(full_path) \ No newline at end of file