'Return a URL-encoded path segment of a URL.
Returned in the form:
<tenant>/stacks/<stack_name>/<stack_id><path>'

def url_path(self):

    return '/'.join((urlparse.quote(self.tenant, ''), self._tenant_path()))
