Petr Kalis
68751b8f22
Fix wrong usage of Hook, should be LoaderPlugin
...
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-19 12:08:27 +02:00
Petr Kalis
d12273a6b8
Removed None assignment
2025-06-19 11:24:13 +02:00
Petr Kalis
b0e472ebe9
Changed order of plugin, result
...
Plugin is required so it makes sense to bump it up to first position and pass it before args
2025-06-19 11:18:34 +02:00
Petr Kalis
e8dcec0510
Changed typing to support 3.7
...
We still support older Maya
2025-06-19 10:52:34 +02:00
Roy Nieterau
1d55f2a033
Update client/ayon_core/pipeline/load/plugins.py
2025-06-18 09:59:09 +02:00
Roy Nieterau
a593516f29
Fix Hook logic to actually run on a LoaderHookPlugin instance
...
- Now `self` on the hook method actually refers to an instantiated `LoaderHookPlugin`
- Add `plugin` kwargs to the hook methods to still provide access to the `LoaderPlugin` instance for potential advanced behavior
- Fix type hint on `compatible_hooks` arguments to `add_hooks_to_loader` function
2025-06-17 23:39:25 +02:00
Roy Nieterau
4c07e03fc6
Merge branch 'feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory' of https://github.com/ynput/ayon-core into feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory
2025-06-17 23:26:47 +02:00
Roy Nieterau
d583279c6d
Fix type hint
2025-06-17 23:26:30 +02:00
Roy Nieterau
556c45c301
Merge branch 'develop' into feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory
2025-06-17 22:49:48 +02:00
Roy Nieterau
bcca8ca8c1
Rename post_* method kwarg container to result to not clash with container argument on update and remove and make it clearer that it's the "result" of something
2025-06-17 22:41:31 +02:00
Roy Nieterau
85ef0fefa4
Fix post_update and post_remove
2025-06-17 21:59:06 +02:00
Roy Nieterau
3018dd35b6
Refactor PrePostLoaderHookPlugin to LoaderHookPlugin
2025-06-17 21:58:16 +02:00
Ondřej Samohel
8196ee2b07
Merge pull request #1147 from ynput/feature/911-new-traits-based-integrator
...
Integrator for Trait based representations
2025-06-17 17:21:24 +02:00
Petr Kalis
3db2cd046a
Implemented pre/post for update and remove
2025-06-17 14:44:24 +02:00
Jakub Ježek
f0152c92ac
Merge branch 'develop' into feature/911-new-traits-based-integrator
2025-06-17 10:34:00 +02:00
Petr Kalis
802b8b2567
Refactored monkey patched method
2025-06-16 17:38:15 +02:00
Petr Kalis
77d5d8d162
Implemented order attribute for sorting
2025-06-16 17:33:30 +02:00
Petr Kalis
f4556ac697
Formatting change
2025-06-16 15:58:03 +02:00
Petr Kalis
03e3b29597
Renamed variable
2025-06-16 14:22:08 +02:00
Petr Kalis
0e582c7d5f
Update docstring
2025-06-16 14:08:26 +02:00
Petr Kalis
234e388697
Added abstractmethod decorator
2025-06-16 14:07:52 +02:00
Petr Kalis
cf4f9cfea6
Removed unused argument
2025-06-16 14:04:47 +02:00
Petr Kalis
4ae7ab28ab
Removed unnecessary import
2025-06-13 17:55:12 +02:00
Petr Kalis
118796a325
Passed returned container from load as keyword
...
Could be appended on position 0 on args, but this feels safer.
2025-06-13 17:46:41 +02:00
Petr Kalis
276eff0097
Added docstring
2025-06-13 17:45:44 +02:00
Petr Kalis
0e292eb356
Renamed
2025-06-13 17:43:47 +02:00
Petr Kalis
a4babae5f5
Revert unneeded change
2025-06-13 16:38:29 +02:00
Petr Kalis
c8cca23e48
Revert unneeded change
2025-06-13 16:37:43 +02:00
Petr Kalis
9a050d9200
Formatting change
2025-06-13 16:35:32 +02:00
Petr Kalis
07809b56dd
Removed _hook_loaders_by_identifier in actions
2025-06-13 16:35:22 +02:00
Petr Kalis
f21f4a5e01
Removed usage of hooks in update, switch
2025-06-13 16:33:09 +02:00
Petr Kalis
7e88916fcd
Reverted missing newline
2025-06-13 16:30:42 +02:00
Petr Kalis
55583e68f8
Fix missing return
2025-06-13 16:29:14 +02:00
Petr Kalis
4c113ca5b5
Removed unneeded _load_context
2025-06-13 16:28:02 +02:00
Petr Kalis
976ef5fb2b
Added monkey patched load method if hooks are found for loader
2025-06-13 16:23:22 +02:00
Petr Kalis
b742dfc381
Changed from loader_identifiers to is_compatible method
2025-06-13 16:22:44 +02:00
Petr Kalis
37f5f55832
Added typing
2025-06-13 16:22:24 +02:00
Petr Kalis
ca768aeddf
Removed get_hook_loaders_by_identifier
...
Replaced by monkeypatch load method
2025-06-13 16:21:56 +02:00
Petr Kalis
4457a432cb
Merged pre/post hooks into single class
2025-06-13 16:19:19 +02:00
Petr Kalis
ee96cdc2c3
Remove methods for pre/post loader hooks from higher api
...
This "hides" a bit methods that are not completely relevant from high level API.
2025-06-13 14:46:23 +02:00
Petr Kalis
0ac277404c
Updated docstring
2025-06-13 14:37:03 +02:00
Petr Kalis
6e095b8c18
Updated docstring
2025-06-13 14:35:23 +02:00
Jakub Trllo
f8ff18f3a7
Merge pull request #1299 from ynput/enhancement/1295-product-base-types-feature-support
...
🏛️ Product base types: feature support check function
2025-06-13 12:16:15 +02:00
Jakub Trllo
d4645c4dab
Merge branch 'develop' into enhancement/1295-product-base-types-feature-support
2025-06-13 11:23:00 +02:00
Jakub Trllo
b4477649b7
Merge pull request #1226 from ynput/feature/107-webactions-in-launcher-tool
...
Launcher tool: Use webactions
2025-06-12 15:05:13 +02:00
Jakub Trllo
2fbc0837aa
Merge branch 'develop' into feature/107-webactions-in-launcher-tool
2025-06-12 14:57:20 +02:00
Jakub Trllo
09e67612b0
moved 'calculate_full_label' to actions model
2025-06-12 14:57:05 +02:00
Jakub Trllo
1fa9bfdfe2
Merge pull request #1321 from ynput/enhancement/correct-typehint
...
Extract review: Correct default value and typehint
2025-06-12 14:44:31 +02:00
Jakub Trllo
8edcd1fc65
replace 'Dict' with 'dict'
2025-06-12 14:13:48 +02:00
Jakub Trllo
ef724793a7
use correct default value
2025-06-12 14:13:33 +02:00