[Grok-dev] IntIds is missing!?
trollfot at gmail.com
Wed Jul 21 17:29:39 EDT 2010
This utility is automatically added ,if you have grok.Indexes
definitions for your application.
By the way, we now use "zope.intid' and not "zope.app.intid"
2010/7/21 Achim Domma <domma at procoders.net>:
> I'm just doing my first successful steps using Grok. I have created an application and have successfully added a local utility. Now I wanted to add an IntIds utility to the application, but I failed. Here's some code:
> import zope.app.intid
> import zope.app.intid.interfaces
> class Myproj(grok.Application, grok.Container):
> grok.local_utility(MyIndex, name='myIndex')
> grok.local_utility(zope.app.intid.IntIds, provides=zope.app.intid.interfaces.IIntIds)
> The first line already produces an "ImportError: No module named intid" error. Documentation looks like IntId is build into Zope per default, but there is also zope.intid on PyPi!? Do I have to add it somehow to my environment?
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev