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:
10
cloud/cli.py
10
cloud/cli.py
@@ -9,6 +9,8 @@ import requests
|
||||
|
||||
from pillar.cli import manager
|
||||
from pillar.api import service
|
||||
from pillar.api.utils import authentication
|
||||
import cloud.setup
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -126,4 +128,12 @@ def reconcile_subscribers():
|
||||
log.info(' skipped : %d', count_skipped)
|
||||
|
||||
|
||||
@manager_cloud.command
|
||||
def setup_for_film(project_url):
|
||||
"""Adds Blender Cloud film custom properties to a project."""
|
||||
|
||||
authentication.force_cli_user()
|
||||
cloud.setup.setup_for_film(project_url)
|
||||
|
||||
|
||||
manager.add_command("cloud", manager_cloud)
|
||||
|
Reference in New Issue
Block a user