Commits

osimons  committed 9cb47a8

[svn r6404] XmlRpcPlugin: Fix for wiki formatting in methods and namespaces when rendering the API overview page. Closes #5586.

  • Participants
  • Parent commits 39ad960

Comments (0)

Files changed (1)

File trunk/tracrpc/web_ui.py

                 namespace = method.namespace.replace('.', '_')
                 if namespace not in namespaces:
                     namespaces[namespace] = {
-                        'description' : wiki_to_oneliner(method.namespace_description, self.env),
+                        'description' : wiki_to_oneliner(
+                                            method.namespace_description,
+                                            self.env, req=req),
                         'methods' : [],
                         'namespace' : method.namespace,
                         }
                 try:
-                    namespaces[namespace]['methods'].append((method.signature, wiki_to_oneliner(method.description, self.env), method.permission))
+                    namespaces[namespace]['methods'].append(
+                                (method.signature,
+                                wiki_to_oneliner(
+                                    method.description, self.env, req=req),
+                                method.permission))
                 except Exception, e:
                     from StringIO import StringIO
                     import traceback