From 4da37dbda0864a555cc5bebc67b5c2fe2e5ab267 Mon Sep 17 00:00:00 2001 From: Jimmy-Lee Boisvert Date: Tue, 1 Dec 2020 11:43:43 -0500 Subject: [PATCH] Add "warning" and "failedOrWarning" action types --- pyblish/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyblish/plugin.py b/pyblish/plugin.py index 5aeaf2e..e6636a9 100644 --- a/pyblish/plugin.py +++ b/pyblish/plugin.py @@ -364,6 +364,8 @@ def __init__(cls, *args, **kwargs): "notProcessed", "processed", "failed", + "warning", + "failedOrWarning", "succeeded"): cls.__error__ = ( "Action had an unrecognised value " @@ -391,6 +393,9 @@ class Action(): - "processed": The plug-in has been processed - "succeeded": The plug-in has been processed, and succeeded - "failed": The plug-in has been processed, and failed + - "warning": The plug-in has been processed, and had a warning + - "failedOrWarning": The plug-in has been processed, and failed or + had a warning icon: Name, relative path or absolute path to image for use as an icon of this action. For relative paths, the current working directory of the host is used and