[Zope3-Users] Anyone had any success with ZCatalog in Zope 3?

Johan Carlsson johanc at easypublisher.com
Fri Nov 18 06:02:57 EST 2005


Johan Carlsson wrote:
> Hi again,
> 
> The ComponentLookupError have re appeared!
> 
>  > Error type: zope.component.interfaces.ComponentLookupError
>  > Error object: (<InterfaceClass zope.app.intid.interfaces.IIntIds>, '')
> 
> What happend was that I had a IntId utitlity in the root site (renamed 
> to '') that answered the request when I added the Indexes in a sub site.
> 
> So the question is how do I rename the IntId utility programmatically
> or why doesn't the following code ad a utility (maybe it's not
> registered correctly to be use right after it's been added but needs
> some events to trigger first???

So, with som testing I figured out that the name is set to ''
but it doesn't get accessible right away:

zapi.getAllUtilitiesRegisteredFor(IIntIds) returns an empty tuple.

Is there some kind of flush-call or commit-call that needs to be executed?

-- 
Johan Carlsson          Tel: + 46 8 31 24 94
Colliberty              Mob: + 46 70 558 25 24
Torsgatan 72            Email: johanc at easypublisher.com
SE-113 37 STOCKHOLM


More information about the Zope3-users mailing list