1.1 --- a/imiptools/handlers/common.py Sun Feb 01 17:03:31 2015 +0100
1.2 +++ b/imiptools/handlers/common.py Sun Feb 01 18:26:21 2015 +0100
1.3 @@ -19,7 +19,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from imiptools.data import to_part
1.8 +from imiptools.data import get_address, to_part
1.9
1.10 class SupportFreebusy:
1.11
1.12 @@ -38,7 +38,12 @@
1.13 # Return a published object.
1.14
1.15 if calendar:
1.16 - return [(True, to_part("PUBLISH", calendar))]
1.17 + return [(
1.18 + map(get_address,
1.19 + from_organiser and self.obj.get_values("ATTENDEE") or
1.20 + self.obj.get_values("ORGANIZER")),
1.21 + to_part("PUBLISH", calendar)
1.22 + )]
1.23
1.24 def make_freebusy(self, from_organiser=True, publish=False):
1.25
1.26 @@ -113,6 +118,6 @@
1.27
1.28 # Return the reply.
1.29
1.30 - return [(True, to_part("REPLY", calendar))]
1.31 + return [(map(get_address, self.obj.get_values("ORGANIZER")), to_part("REPLY", calendar))]
1.32
1.33 # vim: tabstop=4 expandtab shiftwidth=4