1.1 --- a/imiptools/client.py Sat Sep 19 01:07:40 2015 +0200
1.2 +++ b/imiptools/client.py Sat Sep 19 01:08:17 2015 +0200
1.3 @@ -281,14 +281,18 @@
1.4
1.5 # Store operations.
1.6
1.7 - def get_stored_object(self, uid, recurrenceid):
1.8 + def get_stored_object(self, uid, recurrenceid, section=None):
1.9
1.10 """
1.11 Return the stored object for the current user, with the given 'uid' and
1.12 - 'recurrenceid'.
1.13 + 'recurrenceid' from the given 'section' (if specified), or from the
1.14 + standard object collection otherwise.
1.15 """
1.16
1.17 - fragment = self.store.get_event(self.user, uid, recurrenceid)
1.18 + if section == "counters":
1.19 + fragment = self.store.get_counter(self.user, uid, recurrenceid)
1.20 + else:
1.21 + fragment = self.store.get_event(self.user, uid, recurrenceid)
1.22 return fragment and Object(fragment)
1.23
1.24 # Free/busy operations.