[Grok-dev] Re: Registering a factory as a grok.GlobalUtility fails
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Wed May 9 14:56:41 EDT 2007
> > """
> > >>> import grok
> > >>> from zope import component
> > >>> from grok.ftests.utility.local import *
> > >>> grok.grok('grok.ftests.utility.factoryutility')
> > """
> >
> > import grok
> >
> > class ObjectFactory(grok.GlobalUtility):
> > grok.implements('IFactory')
> > grok.name('objectfactory')
> >
> > def __call__(self):
> > return object()
> >
> > Do I do something wrong here? I have, again, no clue...
*DANG*
Note to self: never pass a string to zope.interface.implements....
My apologies for the noise.
kind regards,
jw
--
Jan-Wijbrand Kolman
More information about the Grok-dev
mailing list