1.1 --- a/imiptools/stores/file.py Fri Apr 22 00:06:13 2016 +0200
1.2 +++ b/imiptools/stores/file.py Fri Apr 22 00:06:49 2016 +0200
1.3 @@ -499,7 +499,7 @@
1.4 return False
1.5
1.6 self._set_table_atomic(user, filename,
1.7 - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods))
1.8 + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy)))
1.9 return True
1.10
1.11 def set_freebusy_for_other(self, user, freebusy, other):
1.12 @@ -511,7 +511,7 @@
1.13 return False
1.14
1.15 self._set_table_atomic(user, filename,
1.16 - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods))
1.17 + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy)))
1.18 return True
1.19
1.20 def get_freebusy_others(self, user):
1.21 @@ -907,7 +907,7 @@
1.22 return False
1.23
1.24 self._set_table_atomic(quota, filename,
1.25 - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods))
1.26 + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy)))
1.27 return True
1.28
1.29 # Journal entry methods.
1.30 @@ -941,7 +941,7 @@
1.31 return False
1.32
1.33 self._set_table_atomic(quota, filename,
1.34 - map(lambda fb: fb.as_tuple(strings_only=True), entries.periods))
1.35 + map(lambda fb: fb.as_tuple(strings_only=True), list(entries)))
1.36 return True
1.37
1.38 # vim: tabstop=4 expandtab shiftwidth=4