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.
17 lines
618 B
Python
17 lines
618 B
Python
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')
|