Export to GitHub

snake-guice - issue #9

Better massaging when using the inject decorator incorrectly


Posted on Apr 30, 2009 by Happy Hippo

We are getting this traceback: {{{ File "/home/mgriffith/src/sandbox/src/applib/app/pw/controller/test.py", line 35, in TestController @inject(customer_facade=cf.CustomerFacade) File "build\bdist.win32\egg\peak\util\decorators.py", line 576, in tracer File "build/bdist.linux-i686/egg/snakeguice/decorators.py", line 66, in callback _validate_property_args(func, args, kwargs) File "build/bdist.linux-i686/egg/snakeguice/decorators.py", line 46, in _validate_property_args raise DecorationError('only 1 decorator argument allowed') DecorationError: only 1 decorator argument allowed }}}

when using inject incorrectly. We were specifying property injection and including a keyword arg that was unexpected. Can we make this more obvious?

Comment #1

Posted on Jan 25, 2010 by Happy Hippo

snake-guice no longer supports property injection. I don't believe that this is an issue anymore.

Status: Invalid

Labels:
Type-Enhancement