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

Method set

web/pgadmin/utils/__init__.py:942–951  ·  view source on GitHub ↗
(self, _key, _new_login=True)

Source from the content-addressed store, hash-verified

940
941 @login_required
942 def set(self, _key, _new_login=True):
943 with self.lock:
944 user = self.users.get(current_user.id, None)
945 if user is None:
946 self.users[current_user.id] = dict(
947 session_count=1, key=_key)
948 else:
949 if _new_login:
950 user['session_count'] += 1
951 user['key'] = _key
952
953 @login_required
954 def reset(self):

Callers 15

launchPgAdminWindowFunction · 0.45
notifyUpdateInstalledFunction · 0.45
updateConfigAndMenusFunction · 0.45
register_languageFunction · 0.45
store_crypt_keyFunction · 0.45
browser.jsFile · 0.45
parseEwkbDataFunction · 0.45
set_crypt_keyFunction · 0.45
applyFunction · 0.45
JsonEditorFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected