예제 #1
0
 def _insert_one(new_story):
     Logger(__name__).info(
         'Inserting story with query {}.'.format(new_story))
     return Persistence.insert_one(Story._get_coll(), new_story)
예제 #2
0
 def _insert_one(new_comment):
     Logger(__name__).info(
         'Inserting story comment with query {}.'.format(new_comment))
     return Persistence.insert_one(StoryComment._get_coll(), new_comment)
예제 #3
0
 def _insert_one(new_flash):
     Logger(__name__).info('Inserting flash with query {}.'.format(new_flash))
     return Persistence.insert_one(Flash._get_coll(), new_flash)
예제 #4
0
 def _insert_one(new_user):
     Logger(__name__).info('Inserting user with query {}.'.format(new_user))
     return Persistence.insert_one(User._get_coll(), new_user)