Rename project_type to category in Project
Requires renaming custom_props.cloud.project_type fields to custom_props.cloud.category in all documents of the projects collection.
This commit is contained in:
@@ -559,7 +559,7 @@ def project_browse_view_nodes(project: pillarsdk.Project):
|
|||||||
def project_settings(project: pillarsdk.Project, **template_args: dict):
|
def project_settings(project: pillarsdk.Project, **template_args: dict):
|
||||||
"""Renders the project settings page for Blender Cloud projects.
|
"""Renders the project settings page for Blender Cloud projects.
|
||||||
|
|
||||||
If the project has been setup for Blender Cloud, check for the cloud.project_type
|
If the project has been setup for Blender Cloud, check for the cloud.category
|
||||||
property, to render the proper form.
|
property, to render the proper form.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -570,9 +570,9 @@ def project_settings(project: pillarsdk.Project, **template_args: dict):
|
|||||||
|
|
||||||
cloud_props = project['extension_props'][EXTENSION_NAME]
|
cloud_props = project['extension_props'][EXTENSION_NAME]
|
||||||
|
|
||||||
project_type = cloud_props['project_type']
|
category = cloud_props['category']
|
||||||
if project_type != 'film':
|
if category != 'film':
|
||||||
log.error('No interface available to edit %s projects, yet' % project_type)
|
log.error('No interface available to edit %s projects, yet' % category)
|
||||||
|
|
||||||
form = FilmProjectForm()
|
form = FilmProjectForm()
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ def setup_for_film(project_url):
|
|||||||
# are already there.
|
# are already there.
|
||||||
all_extension_props = project.setdefault('extension_props', {})
|
all_extension_props = project.setdefault('extension_props', {})
|
||||||
cloud_extension_props = {
|
cloud_extension_props = {
|
||||||
'project_type': 'film',
|
'category': 'film',
|
||||||
'theme_css': '',
|
'theme_css': '',
|
||||||
# The accent color (can be 'blue' or '#FFBBAA' or 'rgba(1, 1, 1, 1)
|
# The accent color (can be 'blue' or '#FFBBAA' or 'rgba(1, 1, 1, 1)
|
||||||
'theme_color': '',
|
'theme_color': '',
|
||||||
|
Reference in New Issue
Block a user