'Appends valid objects to container.  Can auto-covert text strings
to Text objects.'

def append(self, content, convertText=True):

    for validChild in self.validChildren:
        if isinstance(content, validChild):
            break
    else:
        raise LrsError(("can't    append    %s    to    %s" % (content.__class__.__name__, self.__class__.__name__)))
    if (convertText and isinstance(content, basestring)):
        content = Text(content)
    content.setParent(self)
    if isinstance(content, LrsObject):
        content.assignId()
    self.contents.append(content)
    return self
