[Zope] Products have incorrect "home" attribute
Luca Olivetti
luca at wetron.es
Wed Jan 18 04:14:21 EST 2006
En/na Andreas Jung ha escrit:
>
>
> --On 18. Januar 2006 08:19:25 +0100 Martijn Pieters <mj at zopatista.com>
> wrote:
>
>> On 1/18/06, Andreas Jung <lists at andreas-jung.com> wrote:
>>> What and where is the 'home' attribute?????
>>
>> In lib/python/App/Product.py line 549:
>>
>> product.home=home
>>
>> 'home' is the product path as determined by
>> OFS.Application.install_product; it looks, from a cursory glance, that
>> this should be reset every time Zope is restart.
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.
>
> huuh...never seen that...looks like a culprit...who actually uses that
> information?
CMFQuickInstaller does (and breaks if you move your zope instance)
> Isn't package_home() doing the same?
funny that you ask since I just noticed that CMFQuickInstaller imports
the function then never uses it.
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
More information about the Zope
mailing list