Introducing setup_for_film functionality
It is now possible, only for user with admin capability, to setup a project as ‘film’. This action can be performed via CLI using ./manage.py cloud setup_for_film <project_url> or via the web interface in the Cloud settings area. Setting up a project for film creates a number of extension props under the ‘cloud’ key. Such properties are listed in the cloud_extension_props variable in setup.py. At this moment the functionality exists for a very specific purpose: improving the presentation of public Film projects in the Blender Cloud. It can be further extended to improve the presentation of Training and Libraries later on.
This commit is contained in:
16
cloud/forms.py
Normal file
16
cloud/forms.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import BooleanField, StringField
|
||||
from wtforms.validators import URL
|
||||
from flask_wtf.html5 import URLField
|
||||
|
||||
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')
|
||||
is_featured = BooleanField('Featured')
|
||||
theme_color = StringField('Theme Color')
|
Reference in New Issue
Block a user