mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
pass host to workfiles model
This commit is contained in:
parent
ea12998f5b
commit
f5c8f01da5
2 changed files with 5 additions and 4 deletions
|
|
@ -176,7 +176,7 @@ class BaseWorkfileController(
|
|||
return UsersModel(self)
|
||||
|
||||
def _create_workfiles_model(self):
|
||||
return WorkfilesModel(self)
|
||||
return WorkfilesModel(self._host, self)
|
||||
|
||||
def _create_expected_selection_obj(self):
|
||||
return WorkfilesToolExpectedSelection(self)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,8 @@ class WorkareaModel:
|
|||
by host integration.
|
||||
"""
|
||||
|
||||
def __init__(self, controller):
|
||||
def __init__(self, host, controller):
|
||||
self._host = host
|
||||
self._controller = controller
|
||||
extensions = None
|
||||
if controller.is_host_valid():
|
||||
|
|
@ -741,11 +742,11 @@ class PublishWorkfilesModel:
|
|||
class WorkfilesModel:
|
||||
"""Workfiles model."""
|
||||
|
||||
def __init__(self, controller):
|
||||
def __init__(self, host, controller):
|
||||
self._controller = controller
|
||||
|
||||
self._entities_model = WorkfileEntitiesModel(controller)
|
||||
self._workarea_model = WorkareaModel(controller)
|
||||
self._workarea_model = WorkareaModel(host, controller)
|
||||
self._published_model = PublishWorkfilesModel(controller)
|
||||
|
||||
def get_workfile_info(self, folder_id, task_id, filepath):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue