1.1 --- a/imip_store.py Thu Sep 24 23:41:47 2015 +0200
1.2 +++ b/imip_store.py Fri Sep 25 15:06:06 2015 +0200
1.3 @@ -769,22 +769,15 @@
1.4 def get_counters(self, user, uid, recurrenceid=None):
1.5
1.6 """
1.7 - For the given 'user', return a mapping of counter-proposals from other
1.8 - users to nodes representing those proposals for the given 'uid' and
1.9 - optional 'recurrenceid'.
1.10 + For the given 'user', return a list of users from whom counter-proposals
1.11 + have been received for the given 'uid' and optional 'recurrenceid'.
1.12 """
1.13
1.14 filename = self.get_event_filename(user, uid, recurrenceid, "counters")
1.15 if not filename:
1.16 return False
1.17
1.18 - counters = {}
1.19 -
1.20 - for other in listdir(filename):
1.21 - counter_filename = self.get_event_filename(user, uid, recurrenceid, "counters", other)
1.22 - counters[other] = self._get_object(user, counter_filename)
1.23 -
1.24 - return counters
1.25 + return [name for name in listdir(filename) if isfile(join(filename, name))]
1.26
1.27 def get_counter(self, user, other, uid, recurrenceid=None):
1.28