MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / get_app

Method get_app

pywebio/platform/path_deploy.py:276–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

274 return _cdn
275
276 def get_app(self):
277 reload = self.get_query_argument('reload', None) is not None
278 type, res = get_app_from_path(self.request.path, abs_base, index=index_func, reload=reload)
279 if type == 'error':
280 raise tornado.web.HTTPError(status_code=res)
281 elif type == 'html':
282 raise tornado.web.Finish(res)
283
284 app_name = self.get_query_argument('app', 'index')
285 app = res.get(app_name) or res['index']
286
287 return app
288
289 gen.send(WSHandler)
290 gen.close()

Callers

nothing calls this directly

Calls 3

get_app_from_pathFunction · 0.85
get_query_argumentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected