Lines Matching defs:self
29 def __init__(self, action, exec_order=DEFAULT_ACTION_ORDER, global_action=True, log_calls = False):
30 self.exec_order = exec_order
31 self.__name__ = action.__name__
37 self.action = logged_action(action) if log_calls is True else action
38 self.global_action = global_action
40 def __lt__(self, other):
44 return self.exec_order < other.exec_order
46 def __call__(self, sp_layout, sp, args :dict):
50 return self.action(sp_layout, sp, args)
52 def __repr__(self) -> str:
56 return f"func: {self.__name__}; global:{self.global_action}; exec_order: {self.exec_order}"