Modify

Opened 4 years ago

Closed 4 years ago

#13724 closed defect (fixed)

Context Error for Trac 1.4

Reported by: Oleg Vassin <oleg.vassin@…> Owned by: Christopher Head
Priority: normal Component: ParameterizedIncludeMacro
Severity: normal Keywords: context
Cc: Trac Release: 1.4

Description

  • .py

    old new import trac.wiki.model 
    43 from trac.web.chrome import web_context as get_context
    44 
    class ParameterizedIncludeMacro(trac.wiki.macros.W 
    75         return trac.mimeview.api.Mimeview(self.env).render(get_context(formatter.req, "wiki", page_name), "text/x-trac-wiki", text)
     73        return trac.mimeview.api.Mimeview(self.env).render(trac.mimeview.api.Context.from_request(formatter.req, "wiki", page_name), "text/x-trac-wiki", text)

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by Oleg Vassin <oleg.vassin@…>

sorry. files in the patch need to be swapped.

comment:2 Changed 4 years ago by figaro

Keywords: context added; contex removed

comment:3 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17655:

Make compatible with Trac 1.4+

Add Rev to svn:keywords

Fixes #13724.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Head.
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.