diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-12-06 12:34:05 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-12-06 12:34:05 +0000 |
commit | 727fb62b579c7c9a56dda165996e9a9bb84cd5b1 (patch) | |
tree | 6927a7db9f82b41faccd445e47a7550433ff0535 /pykolab | |
parent | 425b53619deaf92d3fd41964de159a3809b4f05f (diff) | |
download | pykolab-727fb62b579c7c9a56dda165996e9a9bb84cd5b1.tar.gz |
Use the available user_attrs dictionary, not the non-existent user dictionary
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/plugins/recipientpolicy/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/plugins/recipientpolicy/__init__.py b/pykolab/plugins/recipientpolicy/__init__.py index 1167eae..94e2349 100644 --- a/pykolab/plugins/recipientpolicy/__init__.py +++ b/pykolab/plugins/recipientpolicy/__init__.py @@ -63,7 +63,7 @@ class KolabRecipientpolicy(object): try: mail = kw['primary_mail'] % user_attrs - return utils.translate(mail.lower(), user['preferredLanguage']) + return utils.translate(mail.lower(), user_attrs['preferredLanguage']) except KeyError, e: log.warning(_("Attribute substitution for 'mail' failed in Recipient Policy")) return user_attrs['mail'].lower() @@ -105,7 +105,7 @@ class KolabRecipientpolicy(object): log.warning(_("Attribute substitution for 'alternative_mail' failed in Recipient Policy")) #log.debug(_("Appending additional mail address: %s") %(retval), level=8) - alternative_mail.append(utils.translate(retval), user['preferredLanguage']) + alternative_mail.append(utils.translate(retval), user_attrs['preferredLanguage']) for _domain in kw['secondary_domains']: user_attrs['domain'] = _domain |