Пример #1
0
	def hydrate(self, data): return hydrate_from_xml(self, data)

class IncusClient(object):
Пример #2
0
	def hydrate(self, data):
		hydrate_from_xml(self, data)
		self.channels = [ABChannelInfo().hydrate(etree.tostring(element, pretty_print=True)) for element in etree.fromstring(data).xpath('.//abchannel')]
		return self