[Grok-dev] IntIds is missing!?

Souheil CHELFOUH trollfot at gmail.com
Wed Jul 21 17:29:39 EDT 2010


Hello,

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>:
> Hi,
>
> 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?
>
> cheers,
> Achim
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list