From 4f9699c7ae603150b3f976348b605e96754b7662 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Fri, 19 Apr 2019 12:52:47 +0200 Subject: [PATCH] Remove 16_9 image from extension props This property is now available on Project level. --- cloud/forms.py | 1 - cloud/routes.py | 5 +---- cloud/setup.py | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cloud/forms.py b/cloud/forms.py index a353bdf..b1002c7 100644 --- a/cloud/forms.py +++ b/cloud/forms.py @@ -8,7 +8,6 @@ from pillar.web.utils.forms import FileSelectField class FilmProjectForm(FlaskForm): video_url = URLField(validators=[URL()]) - picture_16_9 = FileSelectField('Picture 16x9', file_format='image') poster = FileSelectField('Poster Image', file_format='image') logo = FileSelectField('Logo', file_format='image') is_in_production = BooleanField('In Production') diff --git a/cloud/routes.py b/cloud/routes.py index cacdf27..3081a4b 100644 --- a/cloud/routes.py +++ b/cloud/routes.py @@ -471,10 +471,7 @@ def project_landing(project_url): # number of additional attributes (pages, images, etc.). if 'extension_props' in project and EXTENSION_NAME in project['extension_props']: extension_props = project['extension_props'][EXTENSION_NAME] - file_props = {'picture_16_9', 'logo'} - for f in file_props: - if f in extension_props: - extension_props[f] = get_file(extension_props[f]) + extension_props['logo'] = get_file(extension_props['logo']) pages = Node.all({ 'where': { diff --git a/cloud/setup.py b/cloud/setup.py index 42bf3d8..1f37bc4 100644 --- a/cloud/setup.py +++ b/cloud/setup.py @@ -39,7 +39,6 @@ def setup_for_film(project_url): 'logo': None, # File ObjectId # TODO(fsiddi) when we introduce other setup_for_* in Blender Cloud, make available # at a higher scope - 'picture_16_9': None, 'is_featured': False, }