imip-agent

Change of imipweb/event.py

785:94cff57d56a9
imipweb/event.py imipweb-client-simplification
     1.1 --- a/imipweb/event.py	Mon Sep 28 22:16:16 2015 +0200
     1.2 +++ b/imipweb/event.py	Mon Sep 28 22:34:54 2015 +0200
     1.3 @@ -833,7 +833,14 @@
     1.4          start = self.get_date_control_values("dtstart")
     1.5          end = self.get_date_control_values("dtend")
     1.6  
     1.7 -        return FormPeriod(start, end, dtend_enabled, dttimes_enabled, self.get_tzid())
     1.8 +        period = FormPeriod(start, end, dtend_enabled, dttimes_enabled, self.get_tzid())
     1.9 +
    1.10 +        # Handle absent main period details.
    1.11 +
    1.12 +        if not period.get_start():
    1.13 +            return self.get_stored_main_period()
    1.14 +        else:
    1.15 +            return period
    1.16  
    1.17      def get_recurrences_from_page(self):
    1.18