VirtualMailManager/ext/Postconf.py
branchv0.6.x
changeset 223 5c7b7cbb01cd
parent 216 0c8c053b451c
child 290 e2785e04f92e
equal deleted inserted replaced
222:d0c16e70a9fb 223:5c7b7cbb01cd
    69             raise VMMError(err.strip(), ERR.VMM_ERROR)
    69             raise VMMError(err.strip(), ERR.VMM_ERROR)
    70         return out.strip()
    70         return out.strip()
    71 
    71 
    72     def __readMulti(self, parameters):
    72     def __readMulti(self, parameters):
    73         cmd = [self.__bin]
    73         cmd = [self.__bin]
    74         for parameter in parameters:
    74         cmd.extend(parameter[1:] for parameter in parameters)
    75             cmd.append(parameter[1:])
       
    76         out, err = Popen(cmd, stdout=PIPE, stderr=PIPE).communicate()
    75         out, err = Popen(cmd, stdout=PIPE, stderr=PIPE).communicate()
    77         if len(err):
    76         if len(err):
    78             raise VMMError(err.strip(), ERR.VMM_ERROR)
    77             raise VMMError(err.strip(), ERR.VMM_ERROR)
    79         par_val = {}
    78         par_val = {}
    80         for line in out.splitlines():
    79         for line in out.splitlines():