MCPcopy Create free account
hub / github.com/datapane/datapane / get_url

Method get_url

python-client/src/datapane/_vendor/bottle.py:857–861  ·  view source on GitHub ↗

Return a string that matches a named route

(self, routename, **kargs)

Source from the content-addressed store, hash-verified

855 return self.router.match(environ)
856
857 def get_url(self, routename, **kargs):
858 """ Return a string that matches a named route """
859 scriptname = request.environ.get('SCRIPT_NAME', '').strip('/') + '/'
860 location = self.router.build(routename, **kargs).lstrip('/')
861 return urljoin(urljoin('/', scriptname), location)
862
863 def add_route(self, route):
864 """ Add a route object, but do not change the :data:`Route.app`

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected