mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix whitespaces
This commit is contained in:
parent
b403fccf05
commit
486be39faa
14 changed files with 23 additions and 23 deletions
|
|
@ -37,7 +37,7 @@ def _handle_error(
|
||||||
if process_context.headless:
|
if process_context.headless:
|
||||||
if detail:
|
if detail:
|
||||||
print(detail)
|
print(detail)
|
||||||
print(f"{10*'*'}\n{message}\n{10*'*'}")
|
print(f"{10 * '*'}\n{message}\n{10 * '*'}")
|
||||||
return
|
return
|
||||||
|
|
||||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
|
||||||
|
|
@ -872,7 +872,7 @@ class CreateContext:
|
||||||
"""
|
"""
|
||||||
return self._event_hub.add_callback(INSTANCE_ADDED_TOPIC, callback)
|
return self._event_hub.add_callback(INSTANCE_ADDED_TOPIC, callback)
|
||||||
|
|
||||||
def add_instances_removed_callback (self, callback):
|
def add_instances_removed_callback(self, callback):
|
||||||
"""Register callback for removed instances.
|
"""Register callback for removed instances.
|
||||||
|
|
||||||
Event is triggered when instances are already removed from context.
|
Event is triggered when instances are already removed from context.
|
||||||
|
|
@ -933,7 +933,7 @@ class CreateContext:
|
||||||
"""
|
"""
|
||||||
self._event_hub.add_callback(VALUE_CHANGED_TOPIC, callback)
|
self._event_hub.add_callback(VALUE_CHANGED_TOPIC, callback)
|
||||||
|
|
||||||
def add_pre_create_attr_defs_change_callback (self, callback):
|
def add_pre_create_attr_defs_change_callback(self, callback):
|
||||||
"""Register callback to listen pre-create attribute changes.
|
"""Register callback to listen pre-create attribute changes.
|
||||||
|
|
||||||
Create plugin can trigger refresh of pre-create attributes. Usage of
|
Create plugin can trigger refresh of pre-create attributes. Usage of
|
||||||
|
|
@ -961,7 +961,7 @@ class CreateContext:
|
||||||
PRE_CREATE_ATTR_DEFS_CHANGED_TOPIC, callback
|
PRE_CREATE_ATTR_DEFS_CHANGED_TOPIC, callback
|
||||||
)
|
)
|
||||||
|
|
||||||
def add_create_attr_defs_change_callback (self, callback):
|
def add_create_attr_defs_change_callback(self, callback):
|
||||||
"""Register callback to listen create attribute changes.
|
"""Register callback to listen create attribute changes.
|
||||||
|
|
||||||
Create plugin changed attribute definitions of instance.
|
Create plugin changed attribute definitions of instance.
|
||||||
|
|
@ -986,7 +986,7 @@ class CreateContext:
|
||||||
"""
|
"""
|
||||||
self._event_hub.add_callback(CREATE_ATTR_DEFS_CHANGED_TOPIC, callback)
|
self._event_hub.add_callback(CREATE_ATTR_DEFS_CHANGED_TOPIC, callback)
|
||||||
|
|
||||||
def add_publish_attr_defs_change_callback (self, callback):
|
def add_publish_attr_defs_change_callback(self, callback):
|
||||||
"""Register callback to listen publish attribute changes.
|
"""Register callback to listen publish attribute changes.
|
||||||
|
|
||||||
Publish plugin changed attribute definitions of instance of context.
|
Publish plugin changed attribute definitions of instance of context.
|
||||||
|
|
|
||||||
|
|
@ -369,7 +369,7 @@ class PublishAttributes:
|
||||||
return copy.deepcopy(self._origin_data)
|
return copy.deepcopy(self._origin_data)
|
||||||
|
|
||||||
def attribute_value_changed(self, key, changes):
|
def attribute_value_changed(self, key, changes):
|
||||||
self._parent.publish_attribute_value_changed(key, changes)
|
self._parent.publish_attribute_value_changed(key, changes)
|
||||||
|
|
||||||
def set_publish_plugin_attr_defs(
|
def set_publish_plugin_attr_defs(
|
||||||
self,
|
self,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ def get_staging_dir_info(
|
||||||
staging_dir_config = get_staging_dir_config(
|
staging_dir_config = get_staging_dir_config(
|
||||||
project_entity["name"],
|
project_entity["name"],
|
||||||
task_type,
|
task_type,
|
||||||
task_name ,
|
task_name,
|
||||||
product_type,
|
product_type,
|
||||||
product_name,
|
product_name,
|
||||||
host_name,
|
host_name,
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ class DeleteOldVersions(load.ProductLoaderPlugin):
|
||||||
f"This will keep only the last {versions_to_keep} "
|
f"This will keep only the last {versions_to_keep} "
|
||||||
f"versions for the {num_contexts} selected product{s}."
|
f"versions for the {num_contexts} selected product{s}."
|
||||||
)
|
)
|
||||||
informative_text="Warning: This will delete files from disk"
|
informative_text = "Warning: This will delete files from disk"
|
||||||
detailed_text = (
|
detailed_text = (
|
||||||
f"Keep only {versions_to_keep} versions for:\n{contexts_list}"
|
f"Keep only {versions_to_keep} versions for:\n{contexts_list}"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
|
||||||
"comments": instance.data.get("comments", []),
|
"comments": instance.data.get("comments", []),
|
||||||
}
|
}
|
||||||
|
|
||||||
shot_data["attributes"] = {}
|
shot_data["attributes"] = {}
|
||||||
SHOT_ATTRS = (
|
SHOT_ATTRS = (
|
||||||
"handleStart",
|
"handleStart",
|
||||||
"handleEnd",
|
"handleEnd",
|
||||||
|
|
|
||||||
|
|
@ -1333,7 +1333,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
bg_red, bg_green, bg_blue = overscan_color
|
bg_red, bg_green, bg_blue = overscan_color
|
||||||
else:
|
else:
|
||||||
# Backwards compatibility
|
# Backwards compatibility
|
||||||
bg_red, bg_green, bg_blue, _ = overscan_color
|
bg_red, bg_green, bg_blue, _ = overscan_color
|
||||||
|
|
||||||
overscan_color_value = "#{0:0>2X}{1:0>2X}{2:0>2X}".format(
|
overscan_color_value = "#{0:0>2X}{1:0>2X}{2:0>2X}".format(
|
||||||
bg_red, bg_green, bg_blue
|
bg_red, bg_green, bg_blue
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class IntegrateResourcesPath(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
label = "Integrate Resources Path"
|
label = "Integrate Resources Path"
|
||||||
order = pyblish.api.IntegratorOrder - 0.05
|
order = pyblish.api.IntegratorOrder - 0.05
|
||||||
families = ["clip", "projectfile", "plate"]
|
families = ["clip", "projectfile", "plate"]
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
resources = instance.data.get("resources") or []
|
resources = instance.data.get("resources") or []
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ class BaseObj:
|
||||||
self.log.warning("Invalid range '{}'".format(part))
|
self.log.warning("Invalid range '{}'".format(part))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for idx in range(sub_parts[0], sub_parts[1]+1):
|
for idx in range(sub_parts[0], sub_parts[1] + 1):
|
||||||
indexes.append(idx)
|
indexes.append(idx)
|
||||||
return indexes
|
return indexes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -492,7 +492,7 @@ def show(parent=None):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
module.window.close()
|
module.window.close()
|
||||||
del(module.window)
|
del module.window
|
||||||
except (AttributeError, RuntimeError):
|
except (AttributeError, RuntimeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ from qtpy import QtWidgets, QtCore, QtGui
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
from ayon_core import style
|
from ayon_core import style
|
||||||
|
|
||||||
TAB = 4* " "
|
TAB = 4 * " "
|
||||||
HEADER_SIZE = "15px"
|
HEADER_SIZE = "15px"
|
||||||
|
|
||||||
KEY_COLOR = QtGui.QColor("#ffffff")
|
KEY_COLOR = QtGui.QColor("#ffffff")
|
||||||
|
|
@ -243,7 +243,7 @@ class DebugUI(QtWidgets.QDialog):
|
||||||
|
|
||||||
self._set_window_title(plugin=result["plugin"])
|
self._set_window_title(plugin=result["plugin"])
|
||||||
|
|
||||||
print(10*"<", result["plugin"].__name__, 10*">")
|
print(10 * "<", result["plugin"].__name__, 10 * ">")
|
||||||
|
|
||||||
plugin_order = result["plugin"].order
|
plugin_order = result["plugin"].order
|
||||||
plugin_name = result["plugin"].__name__
|
plugin_name = result["plugin"].__name__
|
||||||
|
|
|
||||||
|
|
@ -519,9 +519,9 @@ class LoaderWindow(QtWidgets.QWidget):
|
||||||
thumbnail_paths.discard(None)
|
thumbnail_paths.discard(None)
|
||||||
|
|
||||||
if thumbnail_paths:
|
if thumbnail_paths:
|
||||||
self._thumbnails_widget.set_current_thumbnail_paths(
|
self._thumbnails_widget.set_current_thumbnail_paths(
|
||||||
thumbnail_paths
|
thumbnail_paths
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self._thumbnails_widget.set_current_thumbnails(None)
|
self._thumbnails_widget.set_current_thumbnails(None)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -461,19 +461,19 @@ class CreateModel:
|
||||||
self._create_context.add_instances_added_callback(
|
self._create_context.add_instances_added_callback(
|
||||||
self._cc_added_instance
|
self._cc_added_instance
|
||||||
)
|
)
|
||||||
self._create_context.add_instances_removed_callback (
|
self._create_context.add_instances_removed_callback(
|
||||||
self._cc_removed_instance
|
self._cc_removed_instance
|
||||||
)
|
)
|
||||||
self._create_context.add_value_changed_callback(
|
self._create_context.add_value_changed_callback(
|
||||||
self._cc_value_changed
|
self._cc_value_changed
|
||||||
)
|
)
|
||||||
self._create_context.add_pre_create_attr_defs_change_callback (
|
self._create_context.add_pre_create_attr_defs_change_callback(
|
||||||
self._cc_pre_create_attr_changed
|
self._cc_pre_create_attr_changed
|
||||||
)
|
)
|
||||||
self._create_context.add_create_attr_defs_change_callback (
|
self._create_context.add_create_attr_defs_change_callback(
|
||||||
self._cc_create_attr_changed
|
self._cc_create_attr_changed
|
||||||
)
|
)
|
||||||
self._create_context.add_publish_attr_defs_change_callback (
|
self._create_context.add_publish_attr_defs_change_callback(
|
||||||
self._cc_publish_attr_changed
|
self._cc_publish_attr_changed
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue