Edgewall Software

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6477 closed defect (fixed)

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

Reported by: thomas.moschny@… Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 by Christian Boos, 14 years ago

Component: spamfilterwiki
Milestone: 0.11
Owner: changed from Matthew Good to Christian Boos

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 by Christian Boos, 14 years ago

Resolution: fixed
Severity: majornormal
Status: newclosed

Fixed in [6309].

comment:3 by thomas.moschny@…, 14 years ago


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.