attpcdaq.daq.models.ConfigId.from_xml

classmethod ConfigId.from_xml(node)[source]

Construct a ConfigId object from the given XML representation.

Parameters:node (xml.etree.ElementTree.Element or str) – The XML representation of the object, probably from the ECC server. If it’s a string, it will be automatically converted to the appropriate XML node object.
Returns:new_config – A ConfigId object constructed from the representation. Note that this object is not automatically committed to the database, so one should call new_config.save() if that is desired.
Return type:ConfigId