[Zope] Re: z3c.zalchemy : ComponentLookupError: (<InterfaceClass
z3c.zalchemy.interfaces.IAlchemyEngineUtility>, 'DemoEngine-1')
KLEIN Stephane
stephane at harobed.org
Sun Feb 17 17:05:02 EST 2008
Le Sat, 16 Feb 2008 18:33:52 +0000, KLEIN Stephane a écrit :
> Hi,
>
> I've tested z3c.zalchemy package and I've this error :
>
> """
> ComponentLookupError: (<InterfaceClass
> z3c.zalchemy.interfaces.IAlchemyEngineUtility>, 'DemoEngine-1')
> """
I've found one fix :
comment this line in demo/demo_1/message.py :
#z3c.zalchemy.createTable('message', 'DemoEngine-1')
add this lines in demo/demo_1/configure.zcml
<alchemy:createTable
table="message"
engine="DemoEngine-1"
/>
Explication : z3c.zalchemy.createTable('message', 'DemoEngine-1') can't
work because utility registered in zcml is really registered at end of
configuration parsing. Thereof
z3c.zalchemy.interfaces.IAlchemyEngineUtility can't be caught.
Regards,
Stephane
More information about the Zope
mailing list