(self, o, parent=None, most_recent_element=None)
Add an object to the parse tree.
Add an object to the parse tree.
Add an object to the parse tree .
def object_was_parsed(self, o, parent=None, most_recent_element=None):
        """Add an object to the parse tree."""
        parent = parent or self.currentTag
        most_recent_element = most_recent_element or self._most_recent_element
        o.setup(parent, most_recent_element)

        if most_recent_element is not None:
            most_recent_element.next_element = o
        self._most_recent_element = o
        parent.contents.append(o)
def object_was_parsed ( self , o , parent = None , most_recent_element = None ) : parent = parent or self . currentTag most_recent_element = most_recent_element or self . _most_recent_element o . setup ( parent , most_recent_element ) if most_recent_element is not None : most_recent_element . next_element = o self . _most_recent_element = o parent . contents . append ( o )