Ejemplo n.º 1
0
    def get_candidate_list(value):
        """Parse the candidate list from a member value

        Parameters
        ----------
        value: str
            The value from the member to parse. Usually
            member['ASN_CANDIDATE']

        Returns
        -------
        [ACID, ...]
            The list of parsed candidates.
        """
        result = []
        evaled = evaluate(value)
        if is_iterable(evaled):
            result = [ACID(v) for v in evaled]
        return result
Ejemplo n.º 2
0
    def get_candidate_list(value):
        """Parse the candidate list from a member value

        Parameters
        ----------
        value: str
            The value from the member to parse. Usually
            member['ASN_CANDIDATE']

        Returns
        -------
        [ACID, ...]
            The list of parsed candidates.
        """
        result = []
        evaled = evaluate(value)
        if is_iterable(evaled):
            result = [
                ACID(v)
                for v in evaled
            ]
        return result