Modify

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#8764 closed defect (fixed)

Error at adding of a subject of a forum

Reported by: fomink@… Owned by: Ryan J Ollos
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 14 years ago by anonymous

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

comment:2 Changed 14 years ago by Radek Bartoň

Status: newassigned

Which revision of SpamFilterPlugin do you use?

comment:3 Changed 14 years ago by anonymous

TracSpamFilter 0.3.2dev-r9922

comment:4 Changed 12 years ago by Ryan J Ollos

#9036 closed as a duplicate.

comment:5 Changed 12 years ago by Ryan J Ollos

Owner: changed from Radek Bartoň to Ryan J Ollos
Status: assignednew

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 12 years ago by Ryan J Ollos

comment:7 Changed 12 years ago by Ryan J Ollos

Status: newassigned

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

comment:8 Changed 12 years ago by Ryan J Ollos

Two more issues:

comment:9 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(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 12 years ago by Ryan J Ollos

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

comment:11 Changed 12 years ago by Ryan J Ollos

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

comment:12 Changed 12 years ago by Ryan J Ollos

In 13284:

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.