Modify

Opened 19 years ago

Closed 18 years ago

#55 closed defect (fixed)

WikiCalendar macro does not work with Trac 0.9b1

Reported by: sid@… Owned by: Matt Good
Priority: normal Component: WikiCalendarMacro
Severity: blocker Keywords:
Cc: taa@… Trac Release: 0.8

Description

Since the Wiki code was refactored, it broke the WikiCalendar macro. After a little debugging, here are the changes that should be made to get it to work with Trac 0.9x:

Add this:

from trac.wiki import WikiSystem

Change this:

                exists = env._wiki_pages.has_page(wiki)

to:

                exists = WikiSystem(env).has_page(wiki)

Attachments (0)

Change History (3)

comment:1 Changed 19 years ago by Alec Thomas

milestone: 0.9

Milestone 0.9 deleted

comment:2 Changed 19 years ago by anonymous

Trac Release: 0.8

The line

exists = env._wiki_pages.has_page(wiki)

doesn't actually exist in WikiCalendar.py. There's one that's close

exists = env._wiki_pages.has_key(wiki)

Is this the line you meant? If so, should the replacement line have has_page replaced with has_key also?

comment:3 Changed 18 years ago by taa

Cc: taa@… added; anonymous removed
Resolution: fixed
Status: newclosed

This seems to be fixed in the lates version.

Modify Ticket

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