Skip to content

Commit

Permalink
Merge pull request #20 from foundrytom/work/access
Browse files Browse the repository at this point in the history
[Core] Update to openassetio v1.0.0-alpha.14
  • Loading branch information
elliotcmorris authored Aug 29, 2023
2 parents 4d7f28e + d00885c commit 9550116
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions otio_openassetio/operations/openassetio_media_linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from collections import namedtuple

from openassetio import log, exceptions
from openassetio.access import ResolveAccess
from openassetio.hostApi import HostInterface, ManagerFactory
from openassetio.pluginSystem import PythonPluginSystemManagerImplementationFactory

Expand Down Expand Up @@ -54,7 +55,10 @@ def link_media_reference(in_clip, media_linker_argument_map):
# manager fetching any data we are not going to use.
try:
entity_data = manager.resolve(
entity_reference, {LocatableContentTrait.kId}, session_state.context
entity_reference,
{LocatableContentTrait.kId},
ResolveAccess.kRead,
session_state.context,
)
mr.target_url = LocatableContentTrait(entity_data).getLocation()
except Exception as exc:
Expand Down Expand Up @@ -155,6 +159,5 @@ def _createSessionState(args: dict) -> SessionState:
# each clip and see which Timeline it belongs to. This will do for
# now though and is better than making a context per clip.
context = manager.createContext()
context.access = context.Access.kRead

return SessionState(manager=manager, context=context)
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
},
install_requires=[
"OpenTimelineIO >= 0.12.0",
"openassetio == 1.0.0a10",
"openassetio-mediacreation == 1.0.0a4",
"openassetio == 1.0.0a14",
"openassetio-mediacreation == 1.0.0a7",
],
extras_require={
"dev": [
"black",
"pytest",
"flake8",
"twine",
"openassetio-manager-bal == 1.0.0a7"
"openassetio-manager-bal == 1.0.0a10"
]
},
classifiers=[
Expand Down

0 comments on commit 9550116

Please sign in to comment.