def presentation_text(self, nb_characters=400): text = getattr(self, '_presentation_text', None) if text is None: self._init_presentation_text() text = getattr(self, '_presentation_text', '') return truncate_text(text, nb_characters)
def presentation_text(self, nb_characters=400): return truncate_text(getattr(self, 'text', ""), nb_characters)
def presentation_text(self, nb_characters=400): return truncate_text(getattr(self, 'comment', ''), nb_characters)