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)
| 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: |
no test coverage detected