Ejemplo n.º 1
0
 def write_core_lighting_xml(p_element_tag, p_device_obj):
     """
     @param p_element_tag: is the tag/name of the element that will be created
     @param p_device_obj: is the device object that holds the device information.
     @return: the XML element for the device with some sub-elements already attached.
     """
     l_xml = deviceXML.write_base_device_object_xml(p_element_tag, p_device_obj)
     return l_xml
Ejemplo n.º 2
0
 def write_core_lighting_xml(p_element_tag, p_device_obj):
     """
     @param p_element_tag: is the tag/name of the element that will be created
     @param p_device_obj: is the device object that holds the device information.
     @return: the XML element for the device with some sub-elements already attached.
     """
     l_xml = deviceXML.write_base_device_object_xml(p_element_tag,
                                                    p_device_obj)
     return l_xml
Ejemplo n.º 3
0
 def _read_base(p_device_obj, p_entry_xml):
     deviceXML.read_base_device_object_xml(p_device_obj, p_entry_xml)
     return p_device_obj  # for testing
Ejemplo n.º 4
0
 def _write_thermostat_base(p_tag_name, p_obj):
     l_xml = deviceXML.write_base_device_object_xml(p_tag_name, p_obj)
     return l_xml
Ejemplo n.º 5
0
 def _read_base(p_xml):
     l_obj = ThermostatData()
     deviceXML.read_base_device_object_xml(l_obj, p_xml)
     return l_obj
Ejemplo n.º 6
0
 def _write_thermostat_base(p_tag_name, p_obj):
     l_xml = deviceXML.write_base_device_object_xml(p_tag_name, p_obj)
     return l_xml
Ejemplo n.º 7
0
 def _read_base(p_pyhouse_obj, p_xml):
     l_obj = ThermostatData()
     deviceXML.read_base_device_object_xml(p_pyhouse_obj, l_obj, p_xml)
     return l_obj
Ejemplo n.º 8
0
 def _read_base(p_pyhouse_obj, p_device_obj, p_entry_xml):
     deviceXML.read_base_device_object_xml(p_pyhouse_obj, p_device_obj,
                                           p_entry_xml)
     return p_device_obj  # for testing