[Zope-CMF] CMF Tool gotchas
Paul Winkler
pw_lists at slinkp.com
Tue Nov 25 14:25:01 EST 2003
On Thu, Nov 20, 2003 at 08:04:21PM +0100, Dieter Maurer wrote:
> The sources of "Products.CMFCore.utils.ToolInit.initialize"
> and "App.ProductContext.ProductContext.initializeClass"
> explain why it does not work:
>
> "ToolInit.initialize" calls "ProductContext.initializeClass".
> This latter creates the icon. But, it does not use the
> provided "product_name" (if does not know it). Instead,
> it uses its own product name.
Thanks for the tip. That led me to a workaround: don't put
the icon in a subdirectory. Put it in the package root
and refer to it as "tool.gif" instead of "www/tool.gif".
> Remember "ToolInit"s "product_name" must be the name of the
> product for which "initialize" is called.
Yes, that is what I had already.
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's SUPER SINFUL COW!
(random hero from isometric.spaceninja.com)
More information about the Zope-CMF
mailing list