'Add an object to the parse tree.'

def object_was_parsed(self, o):

    o.setup(self.currentTag, self.previous_element)
    if self.previous_element:
        self.previous_element.next_element = o
    self.previous_element = o
    self.currentTag.contents.append(o)
