def setcustomservice(self, objid, service, values):
        ''' Store service customizations in an instantiated service object
            using a list of values that came from a config message.
        '''
        if service._custom:
            s = service
        else:
            # instantiate the class, for storing config customization
            s = service()
        # values are new key=value format; not all keys need to be present
        # a missing key means go with the default
        if Configurable.haskeyvalues(values):
            for v in values:
                key, value = v.split('=', 1)
                s.setvalue(key, value)
        # old-style config, list of values
        else:
            s.fromvaluelist(values)
            
        # assume custom service already in dict
        if service._custom:
            return
        # add the custom service to dict
        if objid in self.customservices:
            self.customservices[objid] += (s, )
        else:
            self.customservices[objid] = (s, )
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreServices.setcustomservice/original