Plugins with variable 'name' of 'iface' as this sample:
[plugin:foo]
name = bar
use = repoze.who.tests.test_config:DummyPlugin
... will trigger a
TypeError: _makePlugin() got multiple values for keyword argument 'name'
... at line 78 in config.py, which is:
obj = self._makePlugin(name, IPlugin, **options)
'options' contains the dict associating the variable name to it parsed value, so
when containing a 'name' or 'iface' keyword it collides with the _makePlugin
prototype which is:
def _makePlugin(self, name, iface, **kw):
This is a nasty bug since sql authenticator needs a 'name' option !
So I provided a simple fixe along with it's test. I hope I missed nothing.
|