1.1 --- a/imiptools/stores/__init__.py Mon Mar 07 17:34:01 2016 +0100
1.2 +++ b/imiptools/stores/__init__.py Mon Mar 07 17:35:01 2016 +0100
1.3 @@ -293,13 +293,13 @@
1.4
1.5 # Free/busy period access.
1.6
1.7 - def get_freebusy(self, user, name=None):
1.8 + def get_freebusy(self, user, name=None, mutable=False):
1.9
1.10 "Get free/busy details for the given 'user'."
1.11
1.12 pass
1.13
1.14 - def get_freebusy_for_other(self, user, other):
1.15 + def get_freebusy_for_other(self, user, other, mutable=False):
1.16
1.17 "For the given 'user', get free/busy details for the 'other' user."
1.18
1.19 @@ -309,13 +309,13 @@
1.20
1.21 "Get free/busy details for the given 'user'."
1.22
1.23 - pass
1.24 + return self.get_freebusy(user, name, True)
1.25
1.26 def get_freebusy_for_other_for_update(self, user, other):
1.27
1.28 "For the given 'user', get free/busy details for the 'other' user."
1.29
1.30 - pass
1.31 + return self.get_freebusy_for_other(user, other, True)
1.32
1.33 def set_freebusy(self, user, freebusy, name=None):
1.34
1.35 @@ -331,7 +331,7 @@
1.36
1.37 # Tentative free/busy periods related to countering.
1.38
1.39 - def get_freebusy_offers(self, user):
1.40 + def get_freebusy_offers(self, user, mutable=False):
1.41
1.42 "Get free/busy offers for the given 'user'."
1.43
1.44 @@ -341,7 +341,7 @@
1.45
1.46 "Get free/busy offers for the given 'user'."
1.47
1.48 - pass
1.49 + return self.get_freebusy_offers(user, True)
1.50
1.51 def set_freebusy_offers(self, user, freebusy):
1.52
1.53 @@ -569,7 +569,7 @@
1.54
1.55 # Free/busy period access for users within quota groups.
1.56
1.57 - def get_freebusy(self, quota, user):
1.58 + def get_freebusy(self, quota, user, mutable=False):
1.59
1.60 "Get free/busy details for the given 'quota' and 'user'."
1.61
1.62 @@ -579,7 +579,7 @@
1.63
1.64 "Get free/busy details for the given 'quota' and 'user'."
1.65
1.66 - pass
1.67 + return self.get_freebusy(quota, user, True)
1.68
1.69 def set_freebusy(self, quota, user, freebusy):
1.70
1.71 @@ -589,7 +589,7 @@
1.72
1.73 # Journal entry methods.
1.74
1.75 - def get_entries(self, quota, group):
1.76 + def get_entries(self, quota, group, mutable=False):
1.77
1.78 """
1.79 Return a list of journal entries for the given 'quota' for the indicated
1.80 @@ -605,7 +605,7 @@
1.81 'group'.
1.82 """
1.83
1.84 - pass
1.85 + return self.get_entries(quota, group, True)
1.86
1.87 def set_entries(self, quota, group, entries):
1.88
2.1 --- a/imiptools/stores/file.py Mon Mar 07 17:34:01 2016 +0100
2.2 +++ b/imiptools/stores/file.py Mon Mar 07 17:35:01 2016 +0100
2.3 @@ -464,12 +464,6 @@
2.4
2.5 return FreeBusyCollection(periods, mutable)
2.6
2.7 - def get_freebusy_for_update(self, user, name=None):
2.8 -
2.9 - "Get free/busy details for the given 'user'."
2.10 -
2.11 - return self.get_freebusy(user, name, True)
2.12 -
2.13 def get_freebusy_for_other(self, user, other, mutable=False):
2.14
2.15 "For the given 'user', get free/busy details for the 'other' user."
2.16 @@ -484,12 +478,6 @@
2.17
2.18 return FreeBusyCollection(periods, mutable)
2.19
2.20 - def get_freebusy_for_other_for_update(self, user, other):
2.21 -
2.22 - "For the given 'user', get free/busy details for the 'other' user."
2.23 -
2.24 - return self.get_freebusy_for_other(user, other, True)
2.25 -
2.26 def set_freebusy(self, user, freebusy, name=None):
2.27
2.28 "For the given 'user', set 'freebusy' details."
2.29 @@ -542,12 +530,6 @@
2.30
2.31 return FreeBusyCollection(offers, mutable)
2.32
2.33 - def get_freebusy_offers_for_update(self, user):
2.34 -
2.35 - "Get free/busy offers for the given 'user'."
2.36 -
2.37 - return self.get_freebusy_offers(user, True)
2.38 -
2.39 def set_freebusy_offers(self, user, freebusy):
2.40
2.41 "For the given 'user', set 'freebusy' offers."
2.42 @@ -850,12 +832,6 @@
2.43
2.44 return FreeBusyCollection(periods, mutable)
2.45
2.46 - def get_freebusy_for_update(self, quota, user):
2.47 -
2.48 - "Get free/busy details for the given 'quota' and 'user'."
2.49 -
2.50 - return self.get_freebusy(quota, user, True)
2.51 -
2.52 def set_freebusy(self, quota, user, freebusy):
2.53
2.54 "For the given 'quota' and 'user', set 'freebusy' details."
2.55 @@ -887,15 +863,6 @@
2.56
2.57 return FreeBusyCollection(periods, mutable)
2.58
2.59 - def get_entries_for_update(self, quota, group):
2.60 -
2.61 - """
2.62 - Return a list of journal entries for the given 'quota' for the indicated
2.63 - 'group'.
2.64 - """
2.65 -
2.66 - return self.get_entries(quota, group, True)
2.67 -
2.68 def set_entries(self, quota, group, entries):
2.69
2.70 """