Opened 6 years ago

Closed 22 months ago

#2726 closed defect (worksforme)

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

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


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 (0)

Change History (5)

comment:1 Changed 6 years ago by ghama

  • Cc ghama added

comment:2 Changed 5 years ago 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.

comment:3 follow-up: Changed 4 years ago by thijs

  • Cc thijs added
  • Priority changed from low to lowest

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

comment:4 in reply to: ↑ 3 Changed 22 months ago 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...

comment:5 Changed 22 months ago by osimons

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.