1.1 --- a/imiptools/stores/database/common.py Sat Jun 04 18:42:53 2016 +0200
1.2 +++ b/imiptools/stores/database/common.py Sun Jun 05 00:12:28 2016 +0200
1.3 @@ -987,7 +987,7 @@
1.4 'group'.
1.5 """
1.6
1.7 - return self.get_freebusy_for_other(quota, group, mutable, cls=FreeBusyGroupDatabaseCollection)
1.8 + return self.get_freebusy_for_other(quota, group, mutable)
1.9
1.10 def set_entries(self, quota, group, entries):
1.11
1.12 @@ -996,6 +996,14 @@
1.13 'entries'.
1.14 """
1.15
1.16 - return self.set_freebusy_for_other(quota, entries, group, cls=FreeBusyGroupDatabaseCollection)
1.17 + return self.set_freebusy_for_other(quota, entries, group)
1.18 +
1.19 + # Compatibility methods.
1.20 +
1.21 + def get_freebusy_for_other(self, user, other, mutable=False):
1.22 + return DatabaseStore.get_freebusy_for_other(self, user, other, mutable, cls=FreeBusyGroupDatabaseCollection)
1.23 +
1.24 + def set_freebusy_for_other(self, user, freebusy, other):
1.25 + return DatabaseStore.set_freebusy_for_other(self, user, freebusy, other, cls=FreeBusyGroupDatabaseCollection)
1.26
1.27 # vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/imiptools/stores/file.py Sat Jun 04 18:42:53 2016 +0200
2.2 +++ b/imiptools/stores/file.py Sun Jun 05 00:12:28 2016 +0200
2.3 @@ -885,7 +885,7 @@
2.4 'group'.
2.5 """
2.6
2.7 - return self.get_freebusy_for_other(quota, group, mutable, cls=FreeBusyGroupPeriod, collection=FreeBusyGroupCollection)
2.8 + return self.get_freebusy_for_other(quota, group, mutable)
2.9
2.10 def set_entries(self, quota, group, entries):
2.11
2.12 @@ -896,4 +896,9 @@
2.13
2.14 return self.set_freebusy_for_other(quota, entries, group)
2.15
2.16 + # Compatibility methods.
2.17 +
2.18 + def get_freebusy_for_other(self, user, other, mutable=False):
2.19 + return Store.get_freebusy_for_other(self, user, other, mutable, cls=FreeBusyGroupPeriod, collection=FreeBusyGroupCollection)
2.20 +
2.21 # vim: tabstop=4 expandtab shiftwidth=4