jeni-python
jeni-python copied to clipboard
FactoryProvider breaks name-only factories
The following no longer works since FactoryProvider was written.
@Injector.factory('foo')
def get_foo(name):
return 'foo '+name
The fix is to call the nameless form lazily (and write a test).
As a workaround, make name optional.