mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added missing abstract property 'host_is_valid'
This commit is contained in:
parent
d6de369cd0
commit
5cfd5db5d7
1 changed files with 15 additions and 1 deletions
|
|
@ -687,7 +687,8 @@ class AbstractPublisherController(object):
|
|||
Define what must be implemented to be able use Publisher functionality.
|
||||
|
||||
Goal is to have "data driven" controller that can be used to control UI
|
||||
running in different process. That lead to some ""
|
||||
running in different process. That lead to some disadvantages like UI can't
|
||||
access objects directly but by using wrappers that can be serialized.
|
||||
"""
|
||||
|
||||
_log = None
|
||||
|
|
@ -762,6 +763,19 @@ class AbstractPublisherController(object):
|
|||
|
||||
pass
|
||||
|
||||
@abstractproperty
|
||||
def host_is_valid(self):
|
||||
"""Host is valid for creation part.
|
||||
|
||||
Host must have implemented certain functionality to be able create
|
||||
in Publisher tool.
|
||||
|
||||
Returns:
|
||||
bool: Host can handle creation of instances.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
@abstractproperty
|
||||
def instances(self):
|
||||
"""Collected/created instances.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue