# HG changeset patch # User Paul Boddie # Date 1465078348 -7200 # Node ID 9feaee690f44af6d3dd7e205f7de44b4e404832d # Parent 00d37da98920957554dbd4e4159dc954cf629aca Introduced compatibility methods for journal free/busy information. diff -r 00d37da98920 -r 9feaee690f44 imiptools/stores/database/common.py --- a/imiptools/stores/database/common.py Sat Jun 04 18:42:53 2016 +0200 +++ b/imiptools/stores/database/common.py Sun Jun 05 00:12:28 2016 +0200 @@ -987,7 +987,7 @@ 'group'. """ - return self.get_freebusy_for_other(quota, group, mutable, cls=FreeBusyGroupDatabaseCollection) + return self.get_freebusy_for_other(quota, group, mutable) def set_entries(self, quota, group, entries): @@ -996,6 +996,14 @@ 'entries'. """ - return self.set_freebusy_for_other(quota, entries, group, cls=FreeBusyGroupDatabaseCollection) + return self.set_freebusy_for_other(quota, entries, group) + + # Compatibility methods. + + def get_freebusy_for_other(self, user, other, mutable=False): + return DatabaseStore.get_freebusy_for_other(self, user, other, mutable, cls=FreeBusyGroupDatabaseCollection) + + def set_freebusy_for_other(self, user, freebusy, other): + return DatabaseStore.set_freebusy_for_other(self, user, freebusy, other, cls=FreeBusyGroupDatabaseCollection) # vim: tabstop=4 expandtab shiftwidth=4 diff -r 00d37da98920 -r 9feaee690f44 imiptools/stores/file.py --- a/imiptools/stores/file.py Sat Jun 04 18:42:53 2016 +0200 +++ b/imiptools/stores/file.py Sun Jun 05 00:12:28 2016 +0200 @@ -885,7 +885,7 @@ 'group'. """ - return self.get_freebusy_for_other(quota, group, mutable, cls=FreeBusyGroupPeriod, collection=FreeBusyGroupCollection) + return self.get_freebusy_for_other(quota, group, mutable) def set_entries(self, quota, group, entries): @@ -896,4 +896,9 @@ return self.set_freebusy_for_other(quota, entries, group) + # Compatibility methods. + + def get_freebusy_for_other(self, user, other, mutable=False): + return Store.get_freebusy_for_other(self, user, other, mutable, cls=FreeBusyGroupPeriod, collection=FreeBusyGroupCollection) + # vim: tabstop=4 expandtab shiftwidth=4