#3743 closed defect (fixed)
WantedPagesPlugin does not work on Trac 0.11
| Reported by: | 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 17 years ago by
| Keywords: | wiki wantedpages missingpages crossrefences 0.11 sqlite broken added | 
|---|---|
| Trac Release: | 0.10 → 0.11 | 
| Type: | defect → enhancement | 
comment:2 Changed 17 years ago by
| Keywords: | xref added; missingpages crossrefences removed | 
|---|
comment:3 Changed 16 years ago by
| Owner: | changed from Justin Francis to Reinout van Rees | 
|---|---|
| Status: | new → assigned | 
| Type: | enhancement → 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 16 years ago by
| Owner: | changed from Reinout van Rees to Justin Francis | 
|---|---|
| Status: | assigned → new | 
Ideally, this needs a new release on pypi. jfrancis, could you do that?
comment:5 Changed 16 years ago by
| Summary: | WantedPagesPlugin does not work on trac 0.11 → WantedPagesPlugin does not work on Trac 0.11 | 
|---|
comment:6 Changed 16 years ago by
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 16 years ago by
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
I have integrated this patch into a new branch for 0.11. Thanks reinout. It should propagate to pypi automatically.
comment:8 Changed 12 years ago by
| Component: | WantedPagesPlugin → WantedPagesMacro | 
|---|
Renaming plugin from WantedPagesPlugin to WantedPagesMacro.




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.