Пример #1
0
 def get_serialized_comments(self):
     # updated_post.comments is a StringListProperty. Each comment_str is inflated to a dictionary
     # that looks like:
     # {"text": "blahblah",
     #  "user": {"fb_uid": "152343",
     #           ...}
     # }
     return [Comment.from_string_for_choosie_post(comment_str) for comment_str in self.comments if comment_str]
 def get_serialized_comments(self):
     # updated_post.comments is a StringListProperty. Each comment_str is inflated to a dictionary
     # that looks like:
     # {"text": "blahblah",
     #  "user": {"fb_uid": "152343",
     #           ...}
     # }
     return [
         Comment.from_string_for_choosie_post(comment_str)
         for comment_str in self.comments if comment_str
     ]