# HG changeset patch # User Paul Boddie # Date 1461276409 -7200 # Node ID 732f324ba395d5f8dafc922b3565c024de956e8e # Parent 5eadf6e5f94047b1c43d05ba4680b29ab898a6ab Use the public interface to the periods in free/busy collections. diff -r 5eadf6e5f940 -r 732f324ba395 imiptools/stores/file.py --- a/imiptools/stores/file.py Fri Apr 22 00:06:13 2016 +0200 +++ b/imiptools/stores/file.py Fri Apr 22 00:06:49 2016 +0200 @@ -499,7 +499,7 @@ return False self._set_table_atomic(user, filename, - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods)) + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy))) return True def set_freebusy_for_other(self, user, freebusy, other): @@ -511,7 +511,7 @@ return False self._set_table_atomic(user, filename, - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods)) + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy))) return True def get_freebusy_others(self, user): @@ -907,7 +907,7 @@ return False self._set_table_atomic(quota, filename, - map(lambda fb: fb.as_tuple(strings_only=True), freebusy.periods)) + map(lambda fb: fb.as_tuple(strings_only=True), list(freebusy))) return True # Journal entry methods. @@ -941,7 +941,7 @@ return False self._set_table_atomic(quota, filename, - map(lambda fb: fb.as_tuple(strings_only=True), entries.periods)) + map(lambda fb: fb.as_tuple(strings_only=True), list(entries))) return True # vim: tabstop=4 expandtab shiftwidth=4