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

Method new_session

web/pgadmin/utils/session.py:212–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 return False
211
212 def new_session(self):
213 session = self.parent.new_session()
214
215 # Do not store the session if skip paths
216 for sp in self.skip_paths:
217 if request.path.startswith(sp):
218 return session
219
220 with sess_lock:
221 self._cache[session.sid] = session
222 self._normalize()
223
224 return session
225
226 def remove(self, sid):
227 with sess_lock:

Callers

nothing calls this directly

Calls 2

_normalizeMethod · 0.95
new_sessionMethod · 0.45

Tested by

no test coverage detected