# HG changeset patch # User Julien Cristau # Date 1399384700 -7200 # Node ID 566d90bdc565034af8c0e26465ade4dc29021e37 # Parent b6cc9da206df8e680985dba4cef3edb214c40695 [wsgi] Delete unused instance_uri and get_full_path methods on CubicWebWsgiRequest diff -r b6cc9da206df -r 566d90bdc565 wsgi/request.py --- a/wsgi/request.py Tue May 06 16:00:36 2014 +0200 +++ b/wsgi/request.py Tue May 06 15:58:20 2014 +0200 @@ -103,29 +103,6 @@ ## wsgi request helpers ################################################### - def instance_uri(self): - """Return the instance's base URI (no PATH_INFO or QUERY_STRING) - - see python2.5's wsgiref.util.instance_uri code - """ - environ = self.environ - url = environ['wsgi.url_scheme'] + '://' - if environ.get('HTTP_HOST'): - url += environ['HTTP_HOST'] - else: - url += environ['SERVER_NAME'] - if environ['wsgi.url_scheme'] == 'https': - if environ['SERVER_PORT'] != '443': - url += ':' + environ['SERVER_PORT'] - else: - if environ['SERVER_PORT'] != '80': - url += ':' + environ['SERVER_PORT'] - url += quote(environ.get('SCRIPT_NAME') or '/') - return url - - def get_full_path(self): - return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '') - def is_secure(self): return self.environ['wsgi.url_scheme'] == 'https'