def _getSessionData(self, id): # For some reason Products.BeakerSessionDataManager doesn't support getSessionDataByKey #sess = self.context.session_data_manager.getSessionDataByKey(sessionId) session = ISession(self.context.REQUEST) return session.get_by_id(id)