mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-03 17:35:19 +01:00
added helper methods
This commit is contained in:
parent
c91a2fb435
commit
8c0392e34b
1 changed files with 15 additions and 1 deletions
|
|
@ -11,7 +11,6 @@ from openpype.api import (
|
|||
|
||||
from openpype.pipeline import (
|
||||
PublishValidationError,
|
||||
KnownPublishError,
|
||||
OpenPypePyblishPluginMixin
|
||||
)
|
||||
|
||||
|
|
@ -246,6 +245,7 @@ class PublisherController:
|
|||
return tasks
|
||||
|
||||
def _trigger_callbacks(self, callbacks, *args, **kwargs):
|
||||
"""Helper method to trigger callbacks stored by their rerence."""
|
||||
# Trigger reset callbacks
|
||||
to_remove = set()
|
||||
for ref in callbacks:
|
||||
|
|
@ -371,6 +371,20 @@ class PublisherController:
|
|||
|
||||
self._reset_instances()
|
||||
|
||||
# --- Publish specific implementations ---
|
||||
@property
|
||||
def publish_has_finished(self):
|
||||
return self._publish_finished
|
||||
|
||||
def get_publish_crash_error(self):
|
||||
return self._publish_error
|
||||
|
||||
def get_publish_logs(self):
|
||||
return self._publish_logs
|
||||
|
||||
def get_validation_errors(self):
|
||||
return self._publish_validation_errors
|
||||
|
||||
def _reset_publish(self):
|
||||
self._publish_validated = False
|
||||
self._publish_up_validation = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue