Modify

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#3743 closed defect (fixed)

WantedPagesPlugin does not work on Trac 0.11

Reported by: dave1010@… Owned by: Justin Francis
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 8 years ago by anthonycapo@…

Keywords: wiki wantedpages missingpages crossrefences 0.11 sqlite broken added
Trac Release: 0.100.11
Type: defectenhancement

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 8 years ago by anonymous

Keywords: xref added; missingpages crossrefences removed

comment:3 Changed 8 years ago by Reinout van Rees

Owner: changed from Justin Francis to Reinout van Rees
Status: newassigned
Type: enhancementdefect

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 8 years ago by Reinout van Rees

Owner: changed from Reinout van Rees to Justin Francis
Status: assignednew

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

comment:5 Changed 8 years ago by Ryan J Ollos

Summary: WantedPagesPlugin does not work on trac 0.11WantedPagesPlugin does not work on Trac 0.11

comment:6 Changed 8 years ago by Justin Francis

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 8 years ago by Justin Francis

Resolution: fixed
Status: newclosed

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

comment:8 Changed 4 years ago by Ryan J Ollos

Component: WantedPagesPluginWantedPagesMacro

Renaming plugin from WantedPagesPlugin to WantedPagesMacro.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Justin Francis.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.