1.1 --- a/imipweb/calendar.py Sun Oct 18 17:32:02 2015 +0200
1.2 +++ b/imipweb/calendar.py Sun Oct 18 18:02:07 2015 +0200
1.3 @@ -51,7 +51,7 @@
1.4 i = key[len("newevent-"):]
1.5 break
1.6 else:
1.7 - return
1.8 + return False
1.9
1.10 # Create a new event using the available information.
1.11
1.12 @@ -60,7 +60,7 @@
1.13 summary = args.get("summary-%s" % i, [None])[0]
1.14
1.15 if not slots:
1.16 - return
1.17 + return False
1.18
1.19 # Obtain the user's timezone.
1.20
1.21 @@ -168,6 +168,7 @@
1.22 # attendee controls, there will be organiser controls.
1.23
1.24 self.redirect(self.link_to(uid))
1.25 + return True
1.26
1.27 # Page fragment methods.
1.28
1.29 @@ -256,7 +257,9 @@
1.30 self.new_page(title="Calendar")
1.31 page = self.page
1.32
1.33 - handled = self.handle_newevent()
1.34 + if self.handle_newevent():
1.35 + return
1.36 +
1.37 freebusy = self.store.get_freebusy(self.user)
1.38
1.39 if not freebusy:
1.40 @@ -277,13 +280,6 @@
1.41 # Day view: start at the earliest known day and produce days until the
1.42 # latest known day, perhaps with expandable sections of empty days.
1.43
1.44 - # Month view: start at the earliest known month and produce months until
1.45 - # the latest known month, perhaps with expandable sections of empty
1.46 - # months.
1.47 -
1.48 - # Details of users to invite to new events could be superimposed on the
1.49 - # calendar.
1.50 -
1.51 # Requests are listed and linked to their tentative positions in the
1.52 # calendar. Other participants are also shown.
1.53