1.1 --- a/actions/EventAggregatorSummary.py Wed Feb 03 20:54:14 2010 +0100
1.2 +++ b/actions/EventAggregatorSummary.py Thu Feb 04 00:24:01 2010 +0100
1.3 @@ -29,6 +29,7 @@
1.4 def get_form_html(self, buttons_html):
1.5 _ = self._
1.6 request = self.request
1.7 + form = request.form
1.8
1.9 category_list = []
1.10
1.11 @@ -57,18 +58,20 @@
1.12 ]
1.13
1.14 d = {
1.15 - "buttons_html" : buttons_html,
1.16 - "category_label" : _("Categories"),
1.17 - "category_list" : "\n".join(category_list),
1.18 - "month_list" : "\n".join(month_list),
1.19 - "start_label" : _("Start year and month"),
1.20 - "start_year_default" : "",
1.21 - "end_label" : _("End year and month"),
1.22 - "end_year_default" : "",
1.23 - "descriptions_label" : _("Use descriptions from..."),
1.24 - "descriptions_list" : "\n".join(descriptions_list),
1.25 - "format_label" : _("Summary format"),
1.26 - "format_list" : "\n".join(format_list),
1.27 + "buttons_html" : buttons_html,
1.28 + "category_label" : _("Categories"),
1.29 + "category_list" : "\n".join(category_list),
1.30 + "month_list" : "\n".join(month_list),
1.31 + "start_label" : _("Start year and month"),
1.32 + "start_year_default" : "",
1.33 + "end_label" : _("End year and month"),
1.34 + "end_year_default" : "",
1.35 + "descriptions_label" : _("Use descriptions from..."),
1.36 + "descriptions_list" : "\n".join(descriptions_list),
1.37 + "format_label" : _("Summary format"),
1.38 + "format_list" : "\n".join(format_list),
1.39 + "parent_label" : _("Parent page"),
1.40 + "parent_name" : form.get("parent", [""])[0],
1.41 }
1.42
1.43 return '''
1.44 @@ -116,6 +119,12 @@
1.45 </td>
1.46 </tr>
1.47 <tr>
1.48 + <td class="label"><label>%(parent_label)s</label></td>
1.49 + <td class="content">
1.50 + <input name="parent" type="text" size="40" value="%(parent_name)s" />
1.51 + </td>
1.52 + </tr>
1.53 + <tr>
1.54 <td></td>
1.55 <td class="buttons">
1.56 %(buttons_html)s
1.57 @@ -172,6 +181,7 @@
1.58 category_names = form.get("category", [])
1.59 format = form.get("format", ["iCalendar"])[0]
1.60 descriptions = form.get("descriptions", ["page"])[0]
1.61 + parent = form.get("parent", [""])[0]
1.62
1.63 # Otherwise, produce an iCalendar resource.
1.64
1.65 @@ -225,7 +235,7 @@
1.66
1.67 # Get the summary details.
1.68
1.69 - event_summary = event.getSummary()
1.70 + event_summary = event.getSummary(parent)
1.71 link = event_page.getPageURL(request)
1.72
1.73 # Output the event details.
1.74 @@ -281,7 +291,7 @@
1.75
1.76 # Get the summary details.
1.77
1.78 - event_summary = event.getSummary()
1.79 + event_summary = event.getSummary(parent)
1.80 link = event_page.getPageURL(request)
1.81
1.82 request.write('<item>\r\n')