(self, source, dest, conditions=None, unless=None, before=None,
                 after=None, prepare=None)
Args:
            source (str): The name of the source State.
            dest (str): The name of the destination State.
            conditions (optional[str, callable or list]): Condition(s) that must pass in order for
                the transition to take place. Either a string providing the
                name of a callable, or a list of callables. For the transition
                to occur, ALL callables must return True.
            unless (optional[str, callable or list]): Condition(s) that must return False in order
                for the transition to occur. Behaves just like conditions arg
                otherwise.
            before (optional[str, callable or list]): callbacks to trigger before the
                transition.
            after (optional[str, callable or list]): callbacks to trigger after the transition.
            prepare (optional[str, callable or list]): callbacks to trigger before conditions are checked
Args:
            source (str): The name of the source State.
            dest (str): The name of the destination State.
            conditions (optional[str, callable or list]): Condition(s) that must pass in order for
                the transition to take place. Either a string providing the
                name of a callable, or a list of callables. For the transition
                to occur, ALL callables must return True.
            unless (optional[str, callable or list]): Condition(s) that must return False in order
                for the transition to occur. Behaves just like conditions arg
                otherwise.
            before (optional[str, callable or list]): callbacks to trigger before the
                transition.
            after (optional[str, callable or list]): callbacks to trigger after the transition.
            prepare (optional[str, callable or list]): callbacks to trigger before conditions are checked
Args : source ( str ) : The name of the source State . dest ( str ) : The name of the destination State . conditions ( optional [ str callable or list ] ) : Condition ( s ) that must pass in order for the transition to take place . Either a string providing the name of a callable or a list of callables . For the transition to occur ALL callables must return True . unless ( optional [ str callable or list ] ) : Condition ( s ) that must return False in order for the transition to occur . Behaves just like conditions arg otherwise . before ( optional [ str callable or list ] ) : callbacks to trigger before the transition . after ( optional [ str callable or list ] ) : callbacks to trigger after the transition . prepare ( optional [ str callable or list ] ) : callbacks to trigger before conditions are checked
def __init__(self, source, dest, conditions=None, unless=None, before=None,
                 after=None, prepare=None):
        """
        Args:
            source (str): The name of the source State.
            dest (str): The name of the destination State.
            conditions (optional[str, callable or list]): Condition(s) that must pass in order for
                the transition to take place. Either a string providing the
                name of a callable, or a list of callables. For the transition
                to occur, ALL callables must return True.
            unless (optional[str, callable or list]): Condition(s) that must return False in order
                for the transition to occur. Behaves just like conditions arg
                otherwise.
            before (optional[str, callable or list]): callbacks to trigger before the
                transition.
            after (optional[str, callable or list]): callbacks to trigger after the transition.
            prepare (optional[str, callable or list]): callbacks to trigger before conditions are checked
        """
        self.source = source
        self.dest = dest
        self.prepare = [] if prepare is None else listify(prepare)
        self.before = [] if before is None else listify(before)
        self.after = [] if after is None else listify(after)

        self.conditions = []
        if conditions is not None:
            for cond in listify(conditions):
                self.conditions.append(self.condition_cls(cond))
        if unless is not None:
            for cond in listify(unless):
                self.conditions.append(self.condition_cls(cond, target=False))
def __init__ ( self , source , dest , conditions = None , unless = None , before = None , after = None , prepare = None ) : self . source = source self . dest = dest self . prepare = [ ] if prepare is None else listify ( prepare ) self . before = [ ] if before is None else listify ( before ) self . after = [ ] if after is None else listify ( after ) self . conditions = [ ] if conditions is not None : for cond in listify ( conditions ) : self . conditions . append ( self . condition_cls ( cond ) ) if unless is not None : for cond in listify ( unless ) : self . conditions . append ( self . condition_cls ( cond , target = False ) )