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:
parent
5df18b670a
commit
a04e62e3e9
@ -559,7 +559,7 @@ def project_browse_view_nodes(project: pillarsdk.Project):
|
||||
def project_settings(project: pillarsdk.Project, **template_args: dict):
|
||||
"""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.
|
||||
"""
|
||||
|
||||
@ -570,9 +570,9 @@ def project_settings(project: pillarsdk.Project, **template_args: dict):
|
||||
|
||||
cloud_props = project['extension_props'][EXTENSION_NAME]
|
||||
|
||||
project_type = cloud_props['project_type']
|
||||
if project_type != 'film':
|
||||
log.error('No interface available to edit %s projects, yet' % project_type)
|
||||
category = cloud_props['category']
|
||||
if category != 'film':
|
||||
log.error('No interface available to edit %s projects, yet' % category)
|
||||
|
||||
form = FilmProjectForm()
|
||||
|
||||
|
@ -29,7 +29,7 @@ def setup_for_film(project_url):
|
||||
# are already there.
|
||||
all_extension_props = project.setdefault('extension_props', {})
|
||||
cloud_extension_props = {
|
||||
'project_type': 'film',
|
||||
'category': 'film',
|
||||
'theme_css': '',
|
||||
# The accent color (can be 'blue' or '#FFBBAA' or 'rgba(1, 1, 1, 1)
|
||||
'theme_color': '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user