Example #1
0
File: model.py Project: ktmud/david
 def abstract(self, limit=140):
     return truncate(striptags(self.content or '').strip(), limit, killwords=True)
Example #2
0
 def abstract(self, limit=140, killwords=True):
     return truncate((self.summary or '').strip() or
             striptags(self.content or '').strip(), limit, killwords)
Example #3
0
File: model.py Project: ktmud/david
 def abstract(self, limit=140):
     return truncate((self.summary or '').strip() or striptags(self.desc or '').strip(), limit)