Opened 16 years ago

Closed 12 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


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 16 years ago by ghama

Cc: ghama added; anonymous removed

comment:2 Changed 15 years ago by osimons

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 14 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 12 years 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 12 years ago by osimons

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
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.