Ticket #55 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

WikiCalendar macro does not work with Trac 0.9b1

Reported by: sid@seegrid.com Assigned to: mgood
Priority: normal Component: WikiCalendarMacro
Severity: blocker Keywords:
Cc: taa@acm.org 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

Change History

01/09/06 15:35:23 changed by athomas

  • milestone deleted.

Milestone 0.9 deleted

04/28/06 20:32:27 changed by anonymous

  • release set to 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?

08/01/06 23:32:48 changed by taa

  • cc set to taa@acm.org.
  • status changed from new to closed.
  • resolution set to fixed.

This seems to be fixed in the lates version.


Add/Change #55 (WikiCalendar macro does not work with Trac 0.9b1)




Change Properties
Action