Exemple #1
0
 def _create_pyhouse_obj():
     l_pyhouse_obj = PyHouseData()
     l_pyhouse_obj.APIs = PyHouseAPIs()
     l_pyhouse_obj.Services = CoreServicesInformation()
     l_pyhouse_obj.Xml = XmlInformation()
     l_pyhouse_obj.Twisted = TwistedInformation()
     l_pyhouse_obj.Twisted.Reactor = reactor
     l_pyhouse_obj.Twisted.Application = Application('PyHouse')
     return l_pyhouse_obj
Exemple #2
0
 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
Exemple #3
0
 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.Xml = self._build_xml(p_root)
     l_pyhouse_obj.Computer.Name = platform.node()
     return l_pyhouse_obj
Exemple #4
0
 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
 def BuildPyHouseObj(self, p_root):
     l_pyhouse_obj = PyHouseData()
     l_pyhouse_obj.APIs = self._build_apis()
     l_pyhouse_obj.Computer = SetupPyHouseObj._build_computer(l_pyhouse_obj)
     l_pyhouse_obj.House = SetupPyHouseObj._build_house_data(l_pyhouse_obj)
     l_pyhouse_obj.Twisted = self._build_twisted()
     l_pyhouse_obj.Uuids = AllUuids()
     l_pyhouse_obj.Uuids.All = {}
     l_pyhouse_obj.Xml = self._build_xml(p_root)
     l_pyhouse_obj.Computer.Name = platform.node()
     return l_pyhouse_obj
Exemple #6
0
    def _nor_create_pyhouse_obj(self):
        """ This creates the master PyHouse_Obj from scratch.

        Everything is initialized from the empty definitions.
        Computer and house components are initialized later on.
        The reactor is not yet running.
        """
        l_pyhouse_obj = PyHouseData()
        l_pyhouse_obj.APIs = PyHouseAPIs()
        l_pyhouse_obj.Twisted = TwistedInformation()
        l_pyhouse_obj.Twisted.Reactor = reactor
        l_pyhouse_obj.Uuids = AllUuids()
        l_pyhouse_obj.Uuids.All = UuidData()
        l_pyhouse_obj.Xml = XmlInformation()
        return l_pyhouse_obj