Ticket #8764 (closed defect: fixed)

Opened 2 years ago

Last modified 8 months ago

Error at adding of a subject of a forum

Reported by: fomink@gmail.com Assigned to: 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

Change History

05/05/11 06:36:32 changed by anonymous

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

05/05/11 14:28:52 changed by Blackhex

  • status changed from new to assigned.

Which revision of SpamFilterPlugin do you use?

05/10/11 03:56:11 changed by anonymous

09/26/12 04:00:26 changed by rjollos

#9036 closed as a duplicate.

09/26/12 04:07:49 changed by rjollos

  • status changed from assigned to new.
  • owner changed from Blackhex to rjollos.

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.

09/26/12 04:23:10 changed by rjollos

Here is the API difference:

09/26/12 04:33:02 changed by rjollos

  • status changed from new to assigned.

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

09/26/12 05:16:51 changed by rjollos

Two more issues:

09/26/12 05:21:13 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

(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.

09/26/12 05:21:53 changed by rjollos

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


Add/Change #8764 (Error at adding of a subject of a forum)




Change Properties
Action