@staticmethod
    def list_string_represent(string, fmt=lambda v: v):
        try:
            if isinstance(string, list):
                return ", ".join([fmt(i) for i in string])
            elif isinstance(string, basestring):
                return ", ".join([fmt(i) for i in string[1:-1].split("|")])
        except __HOLE__:
            return current.messages.UNKNOWN_OPT
        return ""

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/s3db/cap.py/S3CAPModel.list_string_represent