1.1 --- a/imiptools/handlers/common.py Wed Jan 28 01:04:24 2015 +0100
1.2 +++ b/imiptools/handlers/common.py Wed Jan 28 01:17:02 2015 +0100
1.3 @@ -21,22 +21,9 @@
1.4
1.5 from imiptools.content import to_part
1.6
1.7 -class CommonFreebusy:
1.8 -
1.9 - "Common free/busy mix-in."
1.10 -
1.11 - def request(self):
1.12 +class SupportFreebusy:
1.13
1.14 - """
1.15 - Respond to a request by preparing a reply containing free/busy
1.16 - information for each indicated attendee.
1.17 - """
1.18 -
1.19 - calendar = self.make_freebusy(from_organiser=False)
1.20 -
1.21 - # Return the reply.
1.22 -
1.23 - return [(True, to_part("REPLY", calendar))]
1.24 + "Support for free/busy publishing and sharing."
1.25
1.26 def make_freebusy_to_publish(self, from_organiser=True):
1.27
1.28 @@ -110,4 +97,21 @@
1.29
1.30 return calendar
1.31
1.32 +class CommonFreebusy(SupportFreebusy):
1.33 +
1.34 + "Common free/busy mix-in."
1.35 +
1.36 + def request(self):
1.37 +
1.38 + """
1.39 + Respond to a request by preparing a reply containing free/busy
1.40 + information for each indicated attendee.
1.41 + """
1.42 +
1.43 + calendar = self.make_freebusy(from_organiser=False)
1.44 +
1.45 + # Return the reply.
1.46 +
1.47 + return [(True, to_part("REPLY", calendar))]
1.48 +
1.49 # vim: tabstop=4 expandtab shiftwidth=4