def add_wall_post(key, content, user): post = Content(title=content, author=user) post.addIndex("project_bin", key) post.save(bucket="spm_wallposts") return post