1.1 --- a/actions/PostMessage.py Wed Jan 08 01:55:57 2014 +0100
1.2 +++ b/actions/PostMessage.py Thu Jan 09 16:52:05 2014 +0100
1.3 @@ -2,14 +2,15 @@
1.4 """
1.5 MoinMoin - PostMessage Action
1.6
1.7 - @copyright: 2012, 2013 by Paul Boddie <paul@boddie.org.uk>
1.8 + @copyright: 2012, 2013, 2014 by Paul Boddie <paul@boddie.org.uk>
1.9 @license: GNU GPL (v2 or later), see COPYING.txt for details.
1.10 """
1.11
1.12 from MoinMoin.Page import Page
1.13 from MoinMoin.PageEditor import PageEditor
1.14 from MoinSupport import getMetadata, writeHeaders
1.15 -from MoinMessage import is_collection, to_replace, to_store, get_update_action
1.16 +from MoinMessage import is_collection, to_replace, to_store, get_update_action, \
1.17 + as_string
1.18 from MoinMessageSupport import MoinMessageAction
1.19
1.20 Dependencies = ['pages']
1.21 @@ -83,7 +84,7 @@
1.22 if message.date:
1.23 update["Date"] = message.date.as_RFC2822_datetime_string()
1.24
1.25 - self.store.append(update.as_string())
1.26 + self.store.append(as_string(update))
1.27
1.28 # Update the page.
1.29