Modify

Opened 9 years ago

Closed 5 years ago

#2726 closed defect (worksforme)

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

Reported by: anonymous Owned by: Alec Thomas
Priority: lowest Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: ghama, Thijs Triemstra 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 (0)

Change History (5)

comment:1 Changed 9 years ago by ghama

Cc: ghama added; anonymous removed

comment:2 Changed 8 years ago by Odd Simon Simonsen

Priority: normallow

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 Changed 7 years ago by Thijs Triemstra

Cc: Thijs Triemstra added
Priority: lowlowest

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

comment:4 in reply to:  3 Changed 5 years ago by Odd Simon Simonsen

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 5 years ago by Odd Simon Simonsen

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.