imip-agent

Changeset

834:2af42e8a59cc
2015-10-14 Paul Boddie raw files shortlog changelog graph Fixed editing of the main period so that it is not erroneously detected as having been excluded from the event.
imipweb/event.py (file)
     1.1 --- a/imipweb/event.py	Wed Oct 14 14:52:07 2015 +0200
     1.2 +++ b/imipweb/event.py	Wed Oct 14 14:55:02 2015 +0200
     1.3 @@ -194,13 +194,14 @@
     1.4  
     1.5          attendees = self.get_current_attendees()
     1.6          period = self.get_current_main_period()
     1.7 +        stored_period = self.get_stored_main_period()
     1.8          self.show_object_datetime_controls(period)
     1.9  
    1.10          # Obtain any separate recurrences for this event.
    1.11  
    1.12          recurrenceids = self._get_active_recurrences(self.uid)
    1.13          replaced = not self.recurrenceid and period.is_replaced(recurrenceids)
    1.14 -        excluded = period not in self.get_periods(self.obj)
    1.15 +        excluded = period == stored_period and period not in self.get_periods(self.obj)
    1.16  
    1.17          # Provide a summary of the object.
    1.18