MCPcopy Index your code
hub / github.com/webpy/webpy / _delegate_sub_application

Method _delegate_sub_application

web/application.py:532–544  ·  view source on GitHub ↗

Deletes request to sub application `app` rooted at the directory `dir`. The home, homepath, path and fullpath values in web.ctx are updated to mimic request to the subapp and are restored after it is handled. @@Any issues with when used with yield?

(self, dir, app)

Source from the content-addressed store, hash-verified

530 return None, None
531
532 def _delegate_sub_application(self, dir, app):
533 """Deletes request to sub application `app` rooted at the directory `dir`.
534 The home, homepath, path and fullpath values in web.ctx are updated to mimic request
535 to the subapp and are restored after it is handled.
536
537 @@Any issues with when used with yield?
538 """
539 web.ctx._oldctx = web.storage(web.ctx)
540 web.ctx.home += dir
541 web.ctx.homepath += dir
542 web.ctx.path = web.ctx.path[len(dir) :]
543 web.ctx.fullpath = web.ctx.fullpath[len(dir) :]
544 return app.handle_with_processors()
545
546 def get_parent_app(self):
547 if self in web.ctx.app_stack:

Callers 1

_matchMethod · 0.95

Calls 1

Tested by

no test coverage detected