def _create_pyhouse_obj(): l_pyhouse_obj = PyHouseData() l_pyhouse_obj.APIs = PyHouseAPIs() l_pyhouse_obj.Services = CoreServicesInformation() l_pyhouse_obj.Twisted = TwistedInformation() l_pyhouse_obj.Twisted.Reactor = reactor l_pyhouse_obj.Uuids = UuidData() l_pyhouse_obj.Xml = XmlInformation() return l_pyhouse_obj
def BuildPyHouseObj(self, p_root): l_pyhouse_obj = PyHouseData() l_pyhouse_obj.APIs = self._build_apis() l_pyhouse_obj.Computer = self._build_computer() l_pyhouse_obj.House = SetupPyHouseObj._build_house(l_pyhouse_obj) l_pyhouse_obj.Services = self._build_services() l_pyhouse_obj.Twisted = self._build_twisted() l_pyhouse_obj.Uuids = {} l_pyhouse_obj.Xml = self._build_xml(p_root) l_pyhouse_obj.Computer.Name = platform.node() return l_pyhouse_obj