Esempio n. 1
0
 def __str__(self):
     """Return notifications as string"""
     string = "Notification subject: %s (%s)\n%s"
     return string % (self.subject, self.status, emoji_remove(self.body))
Esempio n. 2
0
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
Esempio n. 3
0
 def __str__(self):
     """Return comment as string"""
     return "%s (%d)" % (helper.emoji_remove(self.comment), self.likes)
Esempio n. 4
0
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
Esempio n. 5
0
 def __str__(self):
     """Return notifications as string"""
     string = "Notification subject: %s (%s)\n%s"
     return string % (self.subject, self.status, emoji_remove(self.body))