Edgewall Software

Opened 22 months ago

Last modified 21 months ago

#13321 new defect

SpamFilter plugin still using ITemplateStreamFilter

Reported by: paul@… Owned by: Dirk Stöcker
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version:
Severity: normal Keywords: bitesized
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


The SpamFilter plugin is still using the deprecated ITemplateStreamFilter API and so won't work with trac 1.5.x:

running build_ext
Traceback (most recent call last):
  File "setup.py", line 95, in <module>
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 229, in run
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 251, in run_tests
  File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__
  File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs
  File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests
  File "/usr/lib64/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/builddir/build/BUILD/TracSpamFilter-1.5.0dev-r17344/tracspamfilter/__init__.py", line 17, in <module>
    from tracspamfilter.filtersystem import *
  File "/builddir/build/BUILD/TracSpamFilter-1.5.0dev-r17344/tracspamfilter/filtersystem.py", line 37, in <module>
    from tracspamfilter.filters.trapfield import TrapFieldFilterStrategy
  File "/builddir/build/BUILD/TracSpamFilter-1.5.0dev-r17344/tracspamfilter/filters/trapfield.py", line 19, in <module>
    from trac.web.api import ITemplateStreamFilter
ImportError: cannot import name ITemplateStreamFilter

Fedora Linux 33 (due for release in October) will have trac 1.5.1 or later so the SpamFilter plugin won't be able to work there as things stand.

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 21 months ago

Keywords: bitesized added

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Dirk Stöcker.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from Dirk Stöcker to anonymous. Next status will be 'assigned'.

Add Comment

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