Modify

Opened 4 years ago

Closed 2 years ago

Last modified 18 months ago

#8764 closed defect (fixed)

Error at adding of a subject of a forum

Reported by: fomink@… Owned by: rjollos
Priority: high Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

At adding of a new topic in a forum there is an error

TypeError: test() takes exactly 5 arguments (4 given)
Файл "/usr/lib/python2.6/site-packages/Trac-0.12-py2.6.egg/trac/web/main.py", строка 513, в _dispatch_request
  dispatcher.dispatch(req)
Файл "/usr/lib/python2.6/site-packages/Trac-0.12-py2.6.egg/trac/web/main.py", строка 235, в dispatch
  resp = chosen_handler.process_request(req)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/core.py", строка 108, в process_request
  template, data = api.process_discussion(context)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/api.py", строка 245, в process_discussion
  self._do_actions(context, actions)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/api.py", строка 950, в _do_actions
  context, topic)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/spamfilter.py", строка 25, в filter_topic
  topic['body'])])

In what there can be a problem?

Attachments (0)

Change History (12)

comment:1 Changed 4 years ago by anonymous

Ball problem in DiscussionSpamFilter. After shut-down of the given unit all has earned normally.

comment:2 Changed 4 years ago by Blackhex

  • Status changed from new to assigned

Which revision of SpamFilterPlugin do you use?

comment:3 Changed 4 years ago by anonymous

TracSpamFilter 0.3.2dev-r9922

comment:4 Changed 2 years ago by rjollos

#9036 closed as a duplicate.

comment:5 Changed 2 years ago by rjollos

  • Owner changed from Blackhex to rjollos
  • Status changed from assigned to new

I will go ahead and implement the same fix that the FullBlogPlugin uses, using the trac.util.arity function to differentiate between the function signatures: fullblogplugin/0.11/tracfullblog/spamfilter.py@8253.

comment:6 Changed 2 years ago by rjollos

comment:7 Changed 2 years ago by rjollos

  • Status changed from new to assigned

Here is where the changes took place. SpamFilter 0.3.2+ takes 4 arguments.

comment:8 Changed 2 years ago by rjollos

Two more issues:

comment:9 Changed 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [12058]) Fixes #8764:

  • Made compatible with SpamFilterPlugin 0.2 through at least 0.7.1 (latest at this time).
  • Made the minimum required version of TagsPlugin to be 0.6.
  • Cleaned up and organized setup.py.

comment:10 Changed 2 years ago by rjollos

Please report back if you have an opportunity to test the latest code.

comment:11 Changed 18 months ago by rjollos

See #11129 for an issue left unresolved with this ticket.

comment:12 Changed 18 months ago by rjollos

In 13284:

Fixes #11129, Refs #8764: Follow-on to [12058], fixing second location that SpamFilter.test is called. Patch by retracile.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.