(self, tenant_id, token_id=None)
return self._tenant_to_session[tenant_id]
Looks up a session based on the tenant_id.
        :param unicode tenant_id: The tenant_id of a previously-created
            session.
        :param unicode token_id: Sets token in the session to the token_id provided,
            else, creates one.
Looks up a session based on the tenant_id.
        :param unicode tenant_id: The tenant_id of a previously-created
            session.
        :param unicode token_id: Sets token in the session to the token_id provided,
            else, creates one.
Looks up a session based on the tenant_id . : param unicode tenant_id : The tenant_id of a previously - created session . : param unicode token_id : Sets token in the session to the token_id provided else creates one .
def session_for_tenant_id(self, tenant_id, token_id=None):
        """
        Looks up a session based on the tenant_id.
        :param unicode tenant_id: The tenant_id of a previously-created
            session.
        :param unicode token_id: Sets token in the session to the token_id provided,
            else, creates one.
        """
        if tenant_id not in self._tenant_to_session:
            return self._new_session(tenant_id=tenant_id, token=token_id)
        return self._tenant_to_session[tenant_id]
def session_for_tenant_id ( self , tenant_id , token_id = None ) : if tenant_id not in self . _tenant_to_session : return self . _new_session ( tenant_id = tenant_id , token = token_id ) return self . _tenant_to_session [ tenant_id ]