MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / is_session_ready

Method is_session_ready

web/pgadmin/utils/session.py:201–210  ·  view source on GitHub ↗
(self, _session)

Source from the content-addressed store, hash-verified

199 self._cache.popitem(False)
200
201 def is_session_ready(self, _session):
202 if not has_request_context() or _session is None:
203 return False
204
205 # Session _id returns the str object
206 # or None if it hasn't been set yet.
207 try:
208 return _session['_id'] is not None
209 except (AssertionError, RuntimeError, KeyError, TypeError):
210 return False
211
212 def new_session(self):
213 session = self.parent.new_session()

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected