Opened 11 years ago

Closed 10 years ago

Last modified 9 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


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/", строка 513, в _dispatch_request
Файл "/usr/lib/python2.6/site-packages/Trac-0.12-py2.6.egg/trac/web/", строка 235, в dispatch
  resp = chosen_handler.process_request(req)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/", строка 108, в process_request
  template, data = api.process_discussion(context)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/", строка 245, в process_discussion
  self._do_actions(context, actions)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/", строка 950, в _do_actions
  context, topic)
Файл "/usr/lib/python2.6/site-packages/TracDiscussion-0.7-py2.6.egg/tracdiscussion/", строка 25, в filter_topic

In what there can be a problem?

Attachments (0)

Change History (12)

comment:1 Changed 11 years ago by anonymous

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

comment:2 Changed 11 years ago by Radek Bartoň

Status: newassigned

Which revision of SpamFilterPlugin do you use?

comment:3 Changed 11 years ago by anonymous

TracSpamFilter 0.3.2dev-r9922

comment:4 Changed 10 years ago by Ryan J Ollos

#9036 closed as a duplicate.

comment:5 Changed 10 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/

comment:6 Changed 10 years ago by Ryan J Ollos

comment:7 Changed 10 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 10 years ago by Ryan J Ollos

Two more issues:

comment:9 Changed 10 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

comment:10 Changed 10 years ago by Ryan J Ollos

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

comment:11 Changed 9 years ago by Ryan J Ollos

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

comment:12 Changed 9 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
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.