'Return the URL path without GET parameters.
Removes the trailing slash if there is one.'

@lazy
def path_only(self):

    path = urlparse.urlparse(self.path).path
    if path.endswith('/'):
        return path[:(-1)]
    else:
        return path
