def add_term(self, t):
if t not in self.terms:<EOL><INDENT>if t.parent_term_lc == '<STR_LIT:root>':<EOL><INDENT>self.terms.append(t)<EOL>self.doc.add_term(t, add_section=False)<EOL>t.set_ownership()<EOL><DEDENT>else:<EOL><INDENT>raise GenerateError("<STR_LIT>"<EOL>.format(t, t.parent_term_lc))<EOL><DEDENT><DEDENT>assert t.section or t.join_lc == '<STR_LIT>', t<EOL>
Add a term to this section and set it's ownership. Should only be used on root level terms