diff options
author | Leif Johansson <leifj@sunet.se> | 2012-04-05 13:03:02 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-04-05 13:03:02 +0200 |
commit | 675b5f5e111061e4bdad37d8724d77cd25a02575 (patch) | |
tree | 85df3d2404ef23ec3591362fd0f8bff8194b8ef8 /coip/utils.py | |
parent | 22bd40bdb993f7174a18b1b6326578b443885d1a (diff) |
djangosaml2
Diffstat (limited to 'coip/utils.py')
-rw-r--r-- | coip/utils.py | 11 |
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 |