Exemple #1
0
 def LoadXml(self, p_pyhouse_obj):
     """ Load the Mqtt xml info.
     """
     l_obj = irrigationXml.read_irrigation_xml(p_pyhouse_obj)
     p_pyhouse_obj.House.Irrigation = l_obj
     LOG.info('Loaded XML')
     return l_obj
Exemple #2
0
 def SaveXml(self, p_xml):
     (l_xml, l_count) = irrigationXml.write_irrigation_xml(self.m_pyhouse_obj.House.Irrigation)
     p_xml.append(l_xml)
     LOG.info("Saved {} Irrigation XML.".format(l_count))
     return p_xml
Exemple #3
0
 def SaveXml(self, p_xml):
     (l_xml, l_count) = irrigationXml.write_irrigation_xml(self.m_pyhouse_obj.House.Irrigation)
     p_xml.append(l_xml)
     LOG.info("Saved {} Irrigation XML.".format(l_count))
     return p_xml
Exemple #4
0
 def LoadXml(self, p_pyhouse_obj):
     """ Load the Mqtt xml info.
     """
     l_obj = irrigationXml.read_irrigation_xml(p_pyhouse_obj)
     return l_obj