summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-12-06 12:34:05 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-12-06 12:34:05 +0000
commit727fb62b579c7c9a56dda165996e9a9bb84cd5b1 (patch)
tree6927a7db9f82b41faccd445e47a7550433ff0535
parent425b53619deaf92d3fd41964de159a3809b4f05f (diff)
downloadpykolab-727fb62b579c7c9a56dda165996e9a9bb84cd5b1.tar.gz
Use the available user_attrs dictionary, not the non-existent user dictionary
-rw-r--r--pykolab/plugins/recipientpolicy/__init__.py4
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