tools/metrics/common/models.py
def Marshall(self, doc, obj):
    """Converts an object into an XML node of this type.

    Args:
      doc: A document to create an XML node in.
      obj: An object to be encoded into the XML.

    Returns:
      An XML node encoding the object.
    """
    node = doc.createElement(self.tag)
    text = obj.get(TEXT_KEY)
    if text:
      node.appendChild(doc.createTextNode(text))
    return node
Converts an object into an XML node of this type.

    Args:
      doc: A document to create an XML node in.
      obj: An object to be encoded into the XML.

    Returns:
      An XML node encoding the object.
    
Converts an object into an XML node of this type.
Converts an object into an XML node of this type .
def Marshall(self, doc, obj):
    node = doc.createElement(self.tag)
    text = obj.get(TEXT_KEY)
    if text:
      node.appendChild(doc.createTextNode(text))
    return node
def Marshall ( self , doc , obj ) : node = doc . createElement ( self . tag ) text = obj . get ( TEXT_KEY ) if text : node . appendChild ( doc . createTextNode ( text ) ) return node
Converts an object into an XML node of this type.
Converts an object into an XML node of this type .
"""Converts an object into an XML node of this type.

    Args:
      doc: A document to create an XML node in.
      obj: An object to be encoded into the XML.

    Returns:
      An XML node encoding the object.
    """
An XML node encoding the object.
An XML node encoding the object .
self
doc
A document to create an XML node in.
A document to create an XML node in .
obj
An object to be encoded into the XML.
An object to be encoded into the XML .