[Product-Developers] Re: can't find kupu_library_tool

Derek Richardson derek.richardson at gatech.edu
Tue May 13 18:19:51 UTC 2008


Raphael Ritz wrote:
> Derek Richardson wrote:
>> zope 2.10.4
>> plone 3.0.5
>>
>> getToolByName(ctx, 'kupu_library_tool') gives an Attribute error 
>> because it can't find the kupu_library_tool. yet i can see it in my 
>> zmi. any ideas why? this code is running in an initialize() for a 
>> product.
> 
> Just for clarification: you mean the 'initialize' in __init__.py
> that's executed on startup? There the context is the top-level
> Zope application ('app' in zopectl debug) which doesn't know
> anything about any Plone sites. Maybe that's your problem?
> 
> Raphael

Bingo! Thanks! Evidently, I need a custom GS setuphandler for this.

Derek





More information about the Product-Developers mailing list