Description
Steps to reproduce
I don't know exactly how to reproduce, but while trying to set up an ACL structure I got a Python error saying that the addDefault() function in wikiacl.py required 2 arguments and only 1 was given. When I checked the source code I noticed that line 164 was lacking a cfg argument that was present elsewhere when the addDefault() function was used.
Example
TypeError: addDefault() takes exactly 2 arguments (1 given) __doc__ = 'Inappropriate argument type.' __getitem__ = <bound method TypeError.__getitem__ of <exceptions.TypeError instance at 0x00A96648>> __init__ = <bound method TypeError.__init__ of <exceptions.TypeError instance at 0x00A96648>> __module__ = 'exceptions' __str__ = <bound method TypeError.__str__ of <exceptions.TypeError instance at 0x00A96648>> args = ('addDefault() takes exactly 2 arguments (1 given)',)
}}}
Details
MoinMoin Version |
1.3.1 |
OS and Version |
NT 4 |
Python Version |
2.3.4 |
Server Setup |
standalone |
Server Details |
|
Workaround / Resolution
changed line 164 to self.addDefault(cfg) and the problem was gone
Discussion
Plan
- Priority: High, should be easy to fix
Assigned to: ThomasWaldmann
- Status: will be fixed in 1.3.2 (fixed in moin--main--1.3--patch-469)