OP-2951 - refactor sync loaders

Changed structure of loaders bit, cannot use isinstance check though.
This commit is contained in:
Petr Kalis 2022-04-11 12:30:33 +02:00
parent 4b34050569
commit ad3dfa872e
3 changed files with 18 additions and 13 deletions

View file

@ -719,11 +719,11 @@ def is_sync_loader(loader):
def is_remove_site_loader(loader):
return hasattr(loader, "remove_site_on_representation")
return hasattr(loader, "is_remove_site_loader")
def is_add_site_loader(loader):
return hasattr(loader, "add_site_to_representation")
return hasattr(loader, "is_add_site_loader")
class WrappedCallbackItem: