Ticket #2726 (closed defect: worksforme)

Opened 5 years ago

Last modified 8 months ago

PageOutline macro always renders the outline of WikiStart through getPageHTML()

Reported by: anonymous Assigned to: athomas
Priority: lowest Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: ghama, thijs Trac Release: 0.10

Description

This problem comes from missing page name information that is used in method render_macro.

I apply below modification to my local enviornment:

    def getPageHTML(self, req, pagename, version=None):
        """ Return page in rendered HTML, latest version. """
        text = self.getPage(req, pagename, version)
+       req.args['page'] = pagename
        html = wiki_to_html(text, self.env, req, absurls=1)
        return '<html><body>%s</body></html>' % html

I know it's very dirty hack, but I have no idea to solve this problem in more elegant manner now.

Attachments

Change History

03/14/08 02:34:18 changed by ghama

  • cc set to ghama.

06/10/09 11:45:03 changed by osimons

  • priority changed from normal to low.

Just tested with trac 0.11 and latest xmlrpc from trunk, and not an issue for these versions. I doubt the 0.10 version will get much attention moving forward, but I'll leave it open for now.

(follow-up: ↓ 4 ) 05/03/10 07:11:22 changed by thijs

  • cc changed from ghama to ghama, thijs.
  • priority changed from low to lowest.

This should probably be closed, focus is on 0.11/0.12 afaik.

(in reply to: ↑ 3 ) 10/04/12 08:47:44 changed by osimons

Replying to thijs:

This should probably be closed, focus is on 0.11/0.12 afaik.

Yes - 'worksforme' with 'upgrade' as recommended solution...

10/04/12 08:47:53 changed by osimons

  • status changed from new to closed.
  • resolution set to worksforme.

Add/Change #2726 (PageOutline macro always renders the outline of WikiStart through getPageHTML())




Change Properties
Action