def _insert_one(new_story): Logger(__name__).info( 'Inserting story with query {}.'.format(new_story)) return Persistence.insert_one(Story._get_coll(), new_story)
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)
def _insert_one(new_flash): Logger(__name__).info('Inserting flash with query {}.'.format(new_flash)) return Persistence.insert_one(Flash._get_coll(), new_flash)
def _insert_one(new_user): Logger(__name__).info('Inserting user with query {}.'.format(new_user)) return Persistence.insert_one(User._get_coll(), new_user)