# HG changeset patch # User Paul Boddie # Date 1338835922 -7200 # Node ID a01324597f66a1e6ec51276f503d020695bc92c8 # Parent 58143b9c4b22f8a9175335d19dfe8a5a77c50217 Moved some parsing/formatting-related code to MoinSupport. diff -r 58143b9c4b22 -r a01324597f66 EventAggregatorSupport.py --- a/EventAggregatorSupport.py Thu Mar 29 00:19:44 2012 +0200 +++ b/EventAggregatorSupport.py Mon Jun 04 20:52:02 2012 +0200 @@ -746,12 +746,7 @@ parser if no parser can be found for the specified 'format'. """ - cfg = self.page.request.cfg - - try: - return wikiutil.searchAndImportPlugin(cfg, "parser", format or "plain") - except wikiutil.PluginMissingError: - return wikiutil.searchAndImportPlugin(cfg, "parser", "plain") + return getParserClass(self.page.request, format) def formatText(self, text, fmt): @@ -769,7 +764,7 @@ # Fix lists by indicating that a paragraph is already started. - return request.redirectedOutput(parser.format, fmt, inhibit_p=True) + return redirectedOutput(request, parser, fmt, inhibit_p=True) # Event details. diff -r 58143b9c4b22 -r a01324597f66 README.txt --- a/README.txt Thu Mar 29 00:19:44 2012 +0200 +++ b/README.txt Mon Jun 04 20:52:02 2012 +0200 @@ -298,7 +298,7 @@ Packages Release Information -------- ------------------- -MoinSupport Tested with 0.1 +MoinSupport Tested with 0.3 Source: http://hgweb.boddie.org.uk/MoinSupport pytz Tested with 2007k (specifically 2007k-0ubuntu2)