[Zope] Products have incorrect "home" attribute

Martijn Pieters mj at zopatista.com
Wed Jan 18 05:48:25 EST 2006


On 1/18/06, Luca Olivetti <luca at wetron.es> wrote:
> I asked the same question a couple of days ago (see "wrong directoy in
> Control_Panel.Products.XXXX.home") and no, they aren't reset at zope
> restart, and deleting the pyc files doesn't help either.

Strange. If you are comfortable with the pdb debugger, you can debug
the code in OFS.Application.install_products by adding a 'import pdb;
pdb.set_trace()' before line 615 and see what get_products and
install_product do, focussing on the product_dir variable, and how it
eventually makes its way to the home property.

--
Martijn Pieters


More information about the Zope mailing list