changeset 2895:e24aaec5a557

Creole Parser: removed request from the Parser class
author Radomir Dopieralski <moindev@sheep.art.pl>
date Sun, 21 Oct 2007 13:41:19 +0200
parents 3db0e82be499
children 179099ff37c8
files MoinMoin/parser/_creole.py MoinMoin/parser/text_creole.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_creole.py	Mon Oct 15 20:55:33 2007 +0200
+++ b/MoinMoin/parser/_creole.py	Sun Oct 21 13:41:19 2007 +0200
@@ -136,8 +136,7 @@
         Rules.code, Rules.image, Rules.strong, Rules.emph, Rules.linebreak,
         Rules.escape, Rules.char]), re.X | re.U)
 
-    def __init__(self, raw, request):
-        self.request = request
+    def __init__(self, raw):
         self.raw = raw
         self.root = DocNode('document', None)
         self.cur = self.root        # The most recent document node
--- a/MoinMoin/parser/text_creole.py	Mon Oct 15 20:55:33 2007 +0200
+++ b/MoinMoin/parser/text_creole.py	Sun Oct 21 13:41:19 2007 +0200
@@ -49,7 +49,7 @@
     def format(self, formatter):
         """Create and call the true parser and emitter."""
 
-        document = CreoleParser(self.raw, self.request).parse()
+        document = CreoleParser(self.raw).parse()
         result = Emitter(document, formatter, self.request).emit()
         self.request.write(result)