示例#1
0
 def put(name, genre, year, affiche):
     """ Update an movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(name=name,
                               genre=genre,
                               year=year,
                               affiche=affiche)
     return jsonify({"movie": movie.json})
示例#2
0
文件: movie.py 项目: Rubilmax/netflux
 def put(movie_id, title, author, release_year):
     """ Update a movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(movie_id=movie_id,
                               title=title,
                               author=author,
                               release_year=release_year)
     return jsonify({"movie": movie.json})
示例#3
0
 def put(key, title, director, date, genre):
     """ Update a movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(key=key,
                               title=title,
                               director=director,
                               date=date,
                               genre=genre)
     return jsonify({"movie": movie.json})
示例#4
0
 def put(title, director, original_language, type, date):
     """ Update a movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(title=title,
                               director=director,
                               original_language=original_language,
                               type=type,
                               date=date)
     return jsonify({"movie": movie.json})
示例#5
0
 def put(title, author, length, genre, image, note):
     """ Update an movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(title=title,
                               author=author,
                               length=length,
                               genre=genre,
                               image=image,
                               note=note)
     return jsonify({"movie": movie.json})
示例#6
0
 def put(title, producer, date, actor):
     """ Update a movie based on the sent information """
     repository = MovieRepository()
     movie = repository.update(title=title, producer=producer, date=date, actor=actor)
     return jsonify({"movie": movie.json})