1.1 --- a/macros/SharedContent.py Tue May 14 23:14:39 2013 +0200
1.2 +++ b/macros/SharedContent.py Thu May 16 15:34:49 2013 +0200
1.3 @@ -10,7 +10,7 @@
1.4 from MoinMoin.Page import Page
1.5 from MoinRemoteSupport import *
1.6 from MoinSupport import parseMacroArguments, getParsersForContentType, formatText
1.7 -from MoinShare import getUpdateSources, getUpdatesFromPage, Update
1.8 +from MoinShare import getUpdateSources, getUpdatesFromPage, getUpdatesFromStore, Update
1.9 from email.utils import parsedate
1.10 import xml.dom.pulldom
1.11
1.12 @@ -289,6 +289,21 @@
1.13 )
1.14 ))
1.15
1.16 + # Retrieve updates from message stores.
1.17 +
1.18 + elif source_parameters.get("type") == "store":
1.19 + page = Page(request, location)
1.20 + updates += getUpdatesFromStore(page, request)
1.21 +
1.22 + # Build feed-equivalent information for the update source.
1.23 +
1.24 + feeds.append((
1.25 + page.url(request, {"action" : "SharedUpdates", "store" : "1", "doit" : "1"}), (
1.26 + "internal", _("Updates from message store on page %s") % location,
1.27 + page.url(request)
1.28 + )
1.29 + ))
1.30 +
1.31 # Prepare the output.
1.32
1.33 output = []