diff options
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 |