changeset 3:c9ab05e6d499

text_x_arnica: fixed shadowing of Parser
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 07 Mar 2008 21:46:28 +0100
parents 0ba5fff49070
children ccc40ffe14fc
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Fri Mar 07 21:39:40 2008 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Fri Mar 07 21:46:28 2008 +0100
@@ -86,6 +86,7 @@
     Image = None
 
 class Parser:
+    """ arnica parser """
     extensions = '*.jpg'
     def __init__(self, raw, request, **kw):
         self.target_page = ''
@@ -413,8 +414,8 @@
         @param text: text to parse and render
         """
         text = ''.join(text)
-        from MoinMoin.parser.text_moin_wiki import Parser
-        return wikiutil.renderText(self.request, Parser, text, line_anchors=False)
+        from MoinMoin.parser.text_moin_wiki import Parser as WikiParser
+        return wikiutil.renderText(self.request, WikiParser, text, line_anchors=False)
 
     def get_quotes(self):
         """  get's the qoutes from the itemlist  """