Modify ↓
#4499 closed defect (fixed)
Bayes component of SpamFilter doesn't work with Trac r4502
Reported by: | 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 , 18 years ago
Component: | spamfilter → wiki |
---|---|
Milestone: | → 0.11 |
Status: | new → assigned |
comment:2 by , 18 years ago
Component: | wiki → spamfilter |
---|---|
Milestone: | 0.11 → none |
Resolution: | → fixed |
Status: | assigned → closed |
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.
Note:
See TracTickets
for help on using tickets.
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.