From 675b5f5e111061e4bdad37d8724d77cd25a02575 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 5 Apr 2012 13:03:02 +0200 Subject: djangosaml2 --- coip/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 coip/utils.py (limited to 'coip/utils.py') 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 -- cgit v1.1