1.1 --- a/actions/EventAggregatorNewEvent.py Sun Nov 08 20:05:56 2009 +0100
1.2 +++ b/actions/EventAggregatorNewEvent.py Wed Jan 06 00:04:29 2010 +0100
1.3 @@ -234,17 +234,23 @@
1.4 # Use any parent page information.
1.5
1.6 if parent:
1.7 - title = "%s/%s" % (parent.rstrip("/"), title)
1.8 + full_title = "%s/%s" % (parent.rstrip("/"), title)
1.9 + else:
1.10 + full_title = title
1.11
1.12 # Load the new page and replace the event details in the body.
1.13
1.14 - new_page = PageEditor(request, title)
1.15 + new_page = PageEditor(request, full_title)
1.16
1.17 if new_page.exists():
1.18 return 0, _("The specified page already exists. Please choose another name.")
1.19
1.20 if EventAggregatorSupport.getFormat(page) == "wiki":
1.21 - event_details = {"start" : start_date, "end" : end_date, "title" : title, "summary" : title, "description" : description}
1.22 + event_details = {
1.23 + "start" : start_date, "end" : end_date,
1.24 + "title" : title, "summary" : title,
1.25 + "description" : description
1.26 + }
1.27 body = EventAggregatorSupport.setEventDetails(body, event_details)
1.28 body = EventAggregatorSupport.setCategoryMembership(body, category_pagenames)
1.29 new_page.saveText(body, 0)