MCPcopy Create free account
hub / github.com/pallets/quart / _push_appctx

Method _push_appctx

src/quart/ctx.py:102–110  ·  view source on GitHub ↗
(self, token: Token)

Source from the content-addressed store, hash-verified

100 await self.auto_pop(exc_value)
101
102 async def _push_appctx(self, token: Token) -> None:
103 app_ctx = _cv_app.get(None)
104 if app_ctx is None or app_ctx.app is not self.app:
105 app_ctx = self.app.app_context()
106 await app_ctx.push()
107 else:
108 app_ctx = None
109
110 self._cv_tokens.append((token, app_ctx))
111
112 async def _push(self) -> None:
113 if self.session is None:

Callers 2

pushMethod · 0.80
pushMethod · 0.80

Calls 4

app_contextMethod · 0.80
appendMethod · 0.80
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected