def get_type_as_str(self):
        """ Return a textual description of the type """
        if self.get_type() == 0:
            return _("Skill")
        elif self.get_type() == 1:
            return _("Misconception")
        elif self.get_type() == 2:
            return _("Category")
        else:
            return _("Unknown type")
def get_type_as_str ( self ) : if self . get_type ( ) == 0 : return _ ( "Skill" ) elif self . get_type ( ) == 1 : return _ ( "Misconception" ) elif self . get_type ( ) == 2 : return _ ( "Category" ) else : return _ ( "Unknown type" )
Return a textual description of the type