Edgewall Software

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6477 closed defect (fixed)

TypeError: __init__() got an unexpected keyword argument 'name'

Reported by: thomas.moschny@… Owned by: cboos
Priority: normal Milestone: 0.11
Component: wiki system Version: devel
Severity: normal Keywords:
Release Notes:
API Changes:


How to Reproduce

While doing a POST operation on /wiki/SandBox, Trac issued an internal error.

System Information

Trac 0.11dev-r6306
Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
[GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)]
setuptools 0.6c7
SQLite 3.4.2
pysqlite 2.3.5
Genshi 0.4.4
Pygments 0.9

Python Traceback

Traceback (most recent call last):
  File "/opt/trac/lib/python2.4/site-packages/Trac-0.11dev_r6306-py2.4.egg/trac/web/main.py", line 398, in _dispatch_request
  File "/opt/trac/lib/python2.4/site-packages/Trac-0.11dev_r6306-py2.4.egg/trac/web/main.py", line 195, in dispatch
    resp = chosen_handler.process_request(req)
  File "/opt/trac/lib/python2.4/site-packages/Trac-0.11dev_r6306-py2.4.egg/trac/wiki/web_ui.py", line 133, in process_request
    self._do_save(req, versioned_page)
  File "/opt/trac/lib/python2.4/site-packages/Trac-0.11dev_r6306-py2.4.egg/trac/wiki/web_ui.py", line 243, in _do_save
    for field, message in manipulator.validate_wiki_page(req, page):
  File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line 88, in validate_wiki_page
TypeError: __init__() got an unexpected keyword argument 'name'

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by cboos

  • Component changed from spamfilter to wiki
  • Milestone set to 0.11
  • Owner changed from mgood to cboos

This was an unexpected API change, as we usually don't use a named argument here (calling it like that WikiPage(env, name)), but the SpamFilter does it differently, and maybe so do other plugins.

I'll change the WikiPage keyword argument back to name (was name_or_resource).

comment:2 Changed 7 years ago by cboos

  • Resolution set to fixed
  • Severity changed from major to normal
  • Status changed from new to closed

Fixed in [6309].

comment:3 Changed 7 years ago by thomas.moschny@…


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain cboos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from cboos to the specified user.

Add Comment

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

Note: See TracTickets for help on using tickets.