comparison MoinMoin/parser/text_xslt.py @ 5820:ff39884957af

parsers: avoid crash when Parser.format() call gets inhibit_p kw arg
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 19 Jan 2012 16:21:14 +0100
parents aef3adf3f701
children
comparison
equal deleted inserted replaced
5819:e55c5df76cee 5820:ff39884957af
34 self._ = request.getText 34 self._ = request.getText
35 self.base_scheme = 'wiki' 35 self.base_scheme = 'wiki'
36 self.base_uri = 'wiki://Self/' 36 self.base_uri = 'wiki://Self/'
37 self.key = 'xslt' 37 self.key = 'xslt'
38 38
39 def format(self, formatter): 39 def format(self, formatter, **kw):
40 """ Send the text. """ 40 """ Send the text. """
41 _ = self._ 41 _ = self._
42 42
43 if not self.request.cfg.allow_xslt: 43 if not self.request.cfg.allow_xslt:
44 # use plain text parser if XSLT is not allowed 44 # use plain text parser if XSLT is not allowed