@classmethod
    def tovaluelist(cls, node, services):
        ''' Convert service properties into a string list of key=value pairs,
            separated by "|".
        '''
        valmap = [cls._dirs, cls._configs, cls._startindex, cls._startup, 
                  cls._shutdown, cls._validate, cls._meta, cls._starttime]
        if not cls._custom:
            # this is always reached due to classmethod
            valmap[valmap.index(cls._configs)] = \
                cls.getconfigfilenames(node.objid, services)
            valmap[valmap.index(cls._startup)] = \
                cls.getstartup(node,  services)
        vals = map( lambda a,b: "%s=%s" % (a, str(b)), cls.keys, valmap)
        return "|".join(vals)
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreService.tovaluelist/original