VirtualMailManager/ext/Postconf.py
changeset 89 752d3b57ebb6
parent 87 f9090d1a0730
child 102 485d3f7d6981
--- a/VirtualMailManager/ext/Postconf.py	Wed Sep 17 02:43:16 2008 +0000
+++ b/VirtualMailManager/ext/Postconf.py	Thu Sep 18 18:40:54 2008 +0000
@@ -47,7 +47,7 @@
         """
         if not re.match(RE_PC_PARAMS, parameter):
             raise VMMException(_(u'The value »%s« looks not like a valid\
- postfix configuration parameter name.'), ERR.INVALID_AGUMENT)
+ postfix configuration parameter name.') % parameter, ERR.INVALID_AGUMENT)
         self.__val = self.__read(parameter)
         if expand_vars:
             self.__expandVars()
@@ -62,8 +62,8 @@
             if pvars_len > 1:
                 self.__expandMultiVars(self.__readMulti(pvars))
                 continue
-            for var in pvars:
-                self.__val = self.__val.replace(var, self.__read(var[1:]))
+            pvars = pvars.pop()
+            self.__val = self.__val.replace(pvars, self.__read(pvars[1:]))
 
     def __expandMultiVars(self, old_new):
         for old, new in old_new.items():