Modify

Opened 6 years ago

Closed 5 years ago

Last modified 7 months ago

#3743 closed defect (fixed)

WantedPagesPlugin does not work on Trac 0.11

Reported by: dave1010@… Owned by: jfrancis
Priority: normal Component: WantedPagesMacro
Severity: normal Keywords: wiki wantedpages xref 0.11 sqlite broken
Cc: Trac Release: 0.11

Description

I am unable to get the WantedPagesPlugin working on Trac 0.11. The plugin/macro does not show in the admin area under plugins when installed and running the WantedPages macro results in:

Error: Failed to load processor WantedPages
No macro or processor named 'WantedPages' found

Attachments (0)

Change History (8)

comment:1 Changed 5 years ago by anthonycapo@…

  • Keywords wiki wantedpages missingpages crossrefences 0.11 sqlite broken added
  • Trac Release changed from 0.10 to 0.11
  • Type changed from defect to enhancement

Is there a trac/Python guru who can please update this plugin? WantedPages.py looks like a pretty short script. I'd do it, but I don't know Python or the Trac API very well. This is a pretty important feature, and a quick Google shows that a number of sites that upgraded from 0.10 to 0.11 currently have this macro installed but broken.

comment:2 Changed 5 years ago by anonymous

  • Keywords xref added; missingpages crossrefences removed

comment:3 Changed 5 years ago by reinout

  • Owner changed from jfrancis to reinout
  • Status changed from new to assigned
  • Type changed from enhancement to defect

To get the plugin working with 0.11, simply remove the egg-info directory and change the setup.py to look like this:

from setuptools import setup


setup(name="WantedPages",
      description="Lists all wiki pages that are linked to but not created",
      long_description="""
      Lists all wiki pages that are linked to but not created in wikis, ticket
      descriptions and ticket comments. Use `[[WantedPages(show_referrers)]]`
      to show referring pages.""",
      version="0.4dev",
      homepage="http://trac-hacks.org/wiki/WantedPagesPlugin",
      author="jfrancis",
      email="unkown@example.com",
      packages=['wanted_pages'],
      entry_points={
          'trac.plugins': [
              'WantedPages = wanted_pages.wanted_pages',
              ]},
      )

The important change is thus the removal of WantedPages.egg-info/trac_plugin.txt and the addition of a "trac.plugins" entry point.

comment:4 Changed 5 years ago by reinout

  • Owner changed from reinout to jfrancis
  • Status changed from assigned to new

Ideally, this needs a new release on pypi. jfrancis, could you do that?

comment:5 Changed 5 years ago by rjollos

  • Summary changed from WantedPagesPlugin does not work on trac 0.11 to WantedPagesPlugin does not work on Trac 0.11

comment:6 Changed 5 years ago by jfrancis

Thanks for the report and the solution, guys. I've been away this last year sailing the world, I'll get that patch integrated.

comment:7 Changed 5 years ago by jfrancis

  • Resolution set to fixed
  • Status changed from new to closed

I have integrated this patch into a new branch for 0.11. Thanks reinout. It should propagate to pypi automatically.

comment:8 Changed 7 months ago by rjollos

  • Component changed from WantedPagesPlugin to WantedPagesMacro

Renaming plugin from WantedPagesPlugin to WantedPagesMacro.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.