Modify ↓
#8764 closed defect (fixed)
Error at adding of a subject of a forum
Reported by: | 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
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
Which revision of SpamFilterPlugin do you use?
comment:5 Changed 12 years ago by
Owner: | changed from Radek Bartoň to Ryan J Ollos |
---|---|
Status: | assigned → 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:7 Changed 12 years ago by
Status: | new → assigned |
---|
Here is where the changes took place. SpamFilter 0.3.2+ takes 4 arguments.
comment:8 Changed 12 years ago by
Two more issues:
- The
FilterSystem
class was moved from the api module to the filtersystem module in SpamFilter 0.7. - In SpamFilter 0.7, the 5th argument
ip
was also removed, as this can be obtained from thereq
object.
comment:9 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
- 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
Please report back if you have an opportunity to test the latest code.
Note: See
TracTickets for help on using
tickets.
Ball problem in DiscussionSpamFilter. After shut-down of the given unit all has earned normally.