mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Hound
This commit is contained in:
parent
750db58d39
commit
59ca2f4975
2 changed files with 4 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ class BatchTasksAction(BaseAction):
|
|||
}
|
||||
|
||||
|
||||
def register(session, plugins_presets={}):
|
||||
def register(session, plugins_presets=None):
|
||||
'''Register action. Called when used as an event plugin.'''
|
||||
|
||||
BatchTasksAction(session, plugins_presets).register()
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class BaseHandler(object):
|
|||
ignore_me = False
|
||||
preactions = []
|
||||
|
||||
def __init__(self, session, plugins_presets={}):
|
||||
def __init__(self, session, plugins_presets=None):
|
||||
'''Expects a ftrack_api.Session instance'''
|
||||
self.log = Logger().get_logger(self.__class__.__name__)
|
||||
if not(
|
||||
|
|
@ -57,6 +57,8 @@ class BaseHandler(object):
|
|||
# Using decorator
|
||||
self.register = self.register_decorator(self.register)
|
||||
self.launch = self.launch_log(self.launch)
|
||||
if plugins_presets is None:
|
||||
plugins_presets = {}
|
||||
self.plugins_presets = plugins_presets
|
||||
|
||||
# Decorator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue