Example #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))
Example #2
0
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
Example #3
0
 def __str__(self):
     """Return comment as string"""
     return "%s (%d)" % (helper.emoji_remove(self.comment), self.likes)
Example #4
0
 def __str__(self):
     """Return Yak as string"""
     string = "%s (%d upvotes)"
     message = helper.emoji_remove(self.message)
     return string % (message, self.likes)
Example #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))