summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/utils.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-16 23:29:38 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-16 23:29:38 +0100
commitf69ed719f3c38190f63618191a8d2f4b61522393 (patch)
treebb0ecdfc343a8df68d9b537db3a21661d0c2200d /pykolab/xml/utils.py
parentbe1851eab49b61e958840fb254f8460fd331efaa (diff)
downloadpykolab-f69ed719f3c38190f63618191a8d2f4b61522393.tar.gz
Fix property_to_string() utiliy function and its tests
Diffstat (limited to 'pykolab/xml/utils.py')
-rw-r--r--pykolab/xml/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/xml/utils.py b/pykolab/xml/utils.py
index a3ecbcf..9ff29b6 100644
--- a/pykolab/xml/utils.py
+++ b/pykolab/xml/utils.py
@@ -183,7 +183,7 @@ def property_to_string(propname, value):
elif propname == 'rrule':
from . import recurrence_rule
- rrule = recurrence_rule.frequency_label(value['frequency']) % (value['interval'])
+ rrule = recurrence_rule.frequency_label(value['freq']) % (value['interval'])
if value.has_key('count') and value['count'] > 0:
rrule += " " + _("for %d times") % (value['count'])
elif value.has_key('until') and (isinstance(value['until'], datetime.datetime) or isinstance(value['until'], datetime.date)):