예제 #1
0
def clear_tenant(session: Session) -> None:
    session.pop('active_tenant', None)
    session.pop('active_tenant_name', None)
예제 #2
0
 def flush(cls, session: SessionBase):
     """Remove the table from the session."""
     session.pop(PAYLOAD_SESSION_DICTIONARY, None)
예제 #3
0
def pop_utm_params(session: SessionBase) -> List[UtmParamsDict]:
    """Pop the list of utm_param dicts from a session."""
    return session.pop(SESSION_KEY_UTM_PARAMS, [])
예제 #4
0
def session_logout(session: SessionBase) -> None:
    session.pop('user_data')