Commit d568683c by benjaoming

python 2.5 support

parent 2c39d152
......@@ -76,7 +76,7 @@ class MacroPreprocessor(markdown.preprocessors.Preprocessor):
value = value.replace(u"\\\\", u"¤KEEPME¤")
value = value.replace(u"\\", u"")
value = value.replace(u"¤KEEPME¤", u"\\")
kwargs_dict[arg] = value
kwargs_dict[str(arg)] = value
line = getattr(self, macro)(**kwargs_dict)
else:
line = getattr(self, macro)()
......@@ -84,7 +84,7 @@ class MacroPreprocessor(markdown.preprocessors.Preprocessor):
new_text.append(line)
return new_text
def article_list(self, depth=2):
def article_list(self, depth="2"):
html = render_to_string(
"wiki/plugins/macros/article_list.html",
Context({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment