Exemplo n.º 1
0
Arquivo: model.py Projeto: ktmud/david
 def abstract(self, limit=140):
     return truncate(striptags(self.content or '').strip(), limit, killwords=True)
Exemplo n.º 2
0
 def abstract(self, limit=140, killwords=True):
     return truncate((self.summary or '').strip() or
             striptags(self.content or '').strip(), limit, killwords)
Exemplo n.º 3
0
Arquivo: model.py Projeto: ktmud/david
 def abstract(self, limit=140):
     return truncate((self.summary or '').strip() or striptags(self.desc or '').strip(), limit)