# HG changeset patch # User Paul Boddie # Date 1414515567 -3600 # Node ID 135cab327e7fe6e5e1f607ca902fec909f2e7cd3 # Parent 302a73f826d1995826319f44b87f348f52f3bedd Fixed the types of stored objects. diff -r 302a73f826d1 -r 135cab327e7f imiptools/handlers/person.py --- a/imiptools/handlers/person.py Tue Oct 28 16:55:26 2014 +0100 +++ b/imiptools/handlers/person.py Tue Oct 28 17:59:27 2014 +0100 @@ -18,7 +18,7 @@ "Handling mechanisms specific to people." - def _record_and_deliver(self, queue=False): + def _record_and_deliver(self, objtype, queue=False): oa = self.require_organiser_and_attendees() if not oa: @@ -30,13 +30,13 @@ for attendee, attendee_attr in attendees.items(): - if not self.have_new_object(attendee, "VEVENT"): + if not self.have_new_object(attendee, objtype): continue - # Store the event and queue any request. + # Store the object and queue any request. self.store.set_event(attendee, self.uid, to_node( - {"VEVENT" : [(self.details, {})]} + {objtype : [(self.details, {})]} )) if queue: @@ -100,7 +100,7 @@ "Record replies and notify the recipient." - self._record_and_deliver(False) + self._record_and_deliver("VEVENT", False) # The message is now wrapped and passed on to the recipient. @@ -110,7 +110,7 @@ "Hold requests and notify the recipient." - self._record_and_deliver(True) + self._record_and_deliver("VEVENT", True) # The message is now wrapped and passed on to the recipient. @@ -133,7 +133,7 @@ "Record replies and notify the recipient." - self._record_and_deliver(False) + self._record_and_deliver("VFREEBUSY", False) # The message is now wrapped and passed on to the recipient. @@ -266,7 +266,7 @@ "Record replies and notify the recipient." - self._record_and_deliver(False) + self._record_and_deliver("VTODO", False) # The message is now wrapped and passed on to the recipient. @@ -276,7 +276,7 @@ "Hold requests and notify the recipient." - self._record_and_deliver(True) + self._record_and_deliver("VTODO", True) # The message is now wrapped and passed on to the recipient.