# HG changeset patch # User Paul Boddie # Date 1262732669 -3600 # Node ID a86bb9c82190f176102f1a49080a9cf271a59979 # Parent 425738615e4c5d8f0b73e2e572ca2ae3f18e30a6 Made substituted title/summary text use only the specified title, not the full page title. diff -r 425738615e4c -r a86bb9c82190 actions/EventAggregatorNewEvent.py --- a/actions/EventAggregatorNewEvent.py Sun Nov 08 20:05:56 2009 +0100 +++ b/actions/EventAggregatorNewEvent.py Wed Jan 06 00:04:29 2010 +0100 @@ -234,17 +234,23 @@ # Use any parent page information. if parent: - title = "%s/%s" % (parent.rstrip("/"), title) + full_title = "%s/%s" % (parent.rstrip("/"), title) + else: + full_title = title # Load the new page and replace the event details in the body. - new_page = PageEditor(request, title) + new_page = PageEditor(request, full_title) if new_page.exists(): return 0, _("The specified page already exists. Please choose another name.") if EventAggregatorSupport.getFormat(page) == "wiki": - event_details = {"start" : start_date, "end" : end_date, "title" : title, "summary" : title, "description" : description} + event_details = { + "start" : start_date, "end" : end_date, + "title" : title, "summary" : title, + "description" : description + } body = EventAggregatorSupport.setEventDetails(body, event_details) body = EventAggregatorSupport.setCategoryMembership(body, category_pagenames) new_page.saveText(body, 0)