1.1 --- a/imiptools/client.py Thu Sep 24 23:41:47 2015 +0200
1.2 +++ b/imiptools/client.py Fri Sep 25 15:06:06 2015 +0200
1.3 @@ -267,16 +267,16 @@
1.4
1.5 # Store operations.
1.6
1.7 - def get_stored_object(self, uid, recurrenceid, section=None):
1.8 + def get_stored_object(self, uid, recurrenceid, section=None, username=None):
1.9
1.10 """
1.11 Return the stored object for the current user, with the given 'uid' and
1.12 - 'recurrenceid' from the given 'section' (if specified), or from the
1.13 - standard object collection otherwise.
1.14 + 'recurrenceid' from the given 'section' and for the given 'username' (if
1.15 + specified), or from the standard object collection otherwise.
1.16 """
1.17
1.18 if section == "counters":
1.19 - fragment = self.store.get_counter(self.user, uid, recurrenceid)
1.20 + fragment = self.store.get_counter(self.user, username, uid, recurrenceid)
1.21 else:
1.22 fragment = self.store.get_event(self.user, uid, recurrenceid)
1.23 return fragment and Object(fragment)