[Grok-dev] IntIds is missing!?
domma at procoders.net
Thu Jul 22 03:16:02 EDT 2010
thanks! Using zope.intid instead of zope.app.intid solved the problem. I used this url as reference:
I did not found intid at this url:
Where would I have found the correct documentation?
Am 21.07.2010 um 22:29 schrieb Souheil CHELFOUH:
> 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