Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def presentation_text(self, nb_characters=400):
     return truncate_text(getattr(self, 'text', ""), nb_characters)
Exemplo n.º 4
0
 def presentation_text(self, nb_characters=400):
     return truncate_text(getattr(self, 'comment', ''), nb_characters)