def get_text(self, department, mode="raw"):
        """Returns the text saved for the selected department
        """
        row = self.context.getResultsInterpretationByDepartment(department)
        rt = RichTextValue(row.get("richtext", ""), "text/plain", "text/html")
        if mode == "output":
            return rt.output
        return rt.raw
def get_text ( self , department , mode = "raw" ) : row = self . context . getResultsInterpretationByDepartment ( department ) rt = RichTextValue ( row . get ( "richtext" , "" ) , "text/plain" , "text/html" ) if mode == "output" : return rt . output return rt . raw
Returns the text saved for the selected department