Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4499 closed defect (fixed)

Bayes component of SpamFilter doesn't work with Trac r4502

Reported by: thomas.moschny@… Owned by: Matthew Good
Priority: normal Milestone: 0.11
Component: plugin/spamfilter Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

bayes.py tries to load trac.wiki.formatter.wiki_to_html and fails:

2007-01-07 01:02:23,967 Trac[loader] ERROR: Failed to load plugin spamfilter.bayes from .../plugins/TracSpamFilter-0.2dev_r4489-py2.4.egg
Traceback (most recent call last):
  File "/opt/trac/trac-0.11dev_r4502/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/bayes.py", line 28, in ?
ImportError: cannot import name wiki_to_html

Attachments (0)

Change History (3)

comment:1 by Matthew Good, 18 years ago

Component: spamfilterwiki
Milestone: 0.11
Status: newassigned

The WikiContext change in r4451 removed the wiki_to_* methods, breaking backwards compatibility. I'll add compatibility methods to make this migration easier since this could break a lot of plugins.

comment:2 by Matthew Good, 18 years ago

Component: wikispamfilter
Milestone: 0.11none
Resolution: fixed
Status: assignedclosed

Actually the import of wiki_to_html was not needed in the SpamFilter so it's been removed in r4508. I'll open a new ticket for adding backwards-compatible wiki_to_* methods.

comment:3 by anonymous, 18 years ago

Milestone: none0.11

set to 0.11 as it concerns this release …

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.