1.1 --- a/EventAggregatorSupport.py Thu Mar 29 00:19:44 2012 +0200
1.2 +++ b/EventAggregatorSupport.py Mon Jun 04 20:52:02 2012 +0200
1.3 @@ -746,12 +746,7 @@
1.4 parser if no parser can be found for the specified 'format'.
1.5 """
1.6
1.7 - cfg = self.page.request.cfg
1.8 -
1.9 - try:
1.10 - return wikiutil.searchAndImportPlugin(cfg, "parser", format or "plain")
1.11 - except wikiutil.PluginMissingError:
1.12 - return wikiutil.searchAndImportPlugin(cfg, "parser", "plain")
1.13 + return getParserClass(self.page.request, format)
1.14
1.15 def formatText(self, text, fmt):
1.16
1.17 @@ -769,7 +764,7 @@
1.18
1.19 # Fix lists by indicating that a paragraph is already started.
1.20
1.21 - return request.redirectedOutput(parser.format, fmt, inhibit_p=True)
1.22 + return redirectedOutput(request, parser, fmt, inhibit_p=True)
1.23
1.24 # Event details.
1.25