1.1 --- a/imipweb/calendar.py Fri Sep 18 20:05:42 2015 +0200
1.2 +++ b/imipweb/calendar.py Fri Sep 18 23:44:36 2015 +0200
1.3 @@ -176,8 +176,8 @@
1.4
1.5 page.ul()
1.6
1.7 - for uid, recurrenceid in requests:
1.8 - obj = self.get_stored_object(uid, recurrenceid)
1.9 + for uid, recurrenceid, request_type in requests:
1.10 + obj = self._get_object(uid, recurrenceid)
1.11 if obj:
1.12 page.li()
1.13 page.a(obj.get_value("SUMMARY"), href="#request-%s-%s" % (uid, recurrenceid or ""))
1.14 @@ -705,7 +705,7 @@
1.15 # Only link to events if they are not being
1.16 # updated by requests.
1.17
1.18 - if not p.summary or (p.uid, p.recurrenceid) in self._get_requests() and group_type != "request":
1.19 + if not p.summary or self._have_request(p.uid, p.recurrenceid) and group_type != "request":
1.20 page.span(p.summary or "(Participant is busy)")
1.21 else:
1.22 page.a(p.summary, href=self.link_to(p.uid, p.recurrenceid))