def SLF_ProductID(self): return TbEntityInfo.find_by_machine_name( self.SLF_ComputerName).EI_ProductType
def ServerGUID(self): entity = TbEntityInfo.find_by_machine_name(self.client) return entity.EI_AgentID
def SLF_ClientGUID(self): return TbEntityInfo.find_by_machine_name( self.SLF_ComputerName).EI_EntityID
def find_by_slf_key_and_agent(cls, key, agent): agent_guid = TbEntityInfo.find_by_machine_name(agent).EI_EntityID return cm_session.query(cls).filter( and_(cls.SLF_Key == key, cls.AgentID == agent_guid)).first()
def ClientGUID(self): entity = TbEntityInfo.find_by_machine_name(self.client) return entity.EI_EntityID
def ProductGUID(self): return TbEntityInfo.find_by_machine_name(self.ComputerName).EI_EntityID
def CLF_ManagerID(self): return TbEntityInfo.find_by_machine_name(self.CLF_ComputerName).EI_ManagerID
def CLF_ProductVersion(self): return TbEntityInfo.find_by_machine_name(self.CLF_ComputerName).EI_ProductVersion
def CLF_EntityID(self): return TbEntityInfo.find_by_machine_name(self.CLF_ComputerName).EI_AgentID
def find_by_criteria_and_agent(cls, criteria, agent): agent_guid = TbEntityInfo.find_by_machine_name(agent).EI_EntityID return cm_session.query(cls).filter(and_(cls.Criteria == criteria, cls.AgentID == agent_guid)).first()