Re: [Zope] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-16 Thread Luca Olivetti

En/na Dieter Maurer ha escrit:


Zope's behaviour in handling product updates below Control_Panel.Products
is very difficult to understand.


;-)
It usually freaks me out when I (seldom) delete a product from the 
filesystem and it's still there in the control panel..



Almost surely, it will help when you delete all closed products
there and then restart Zope. The restart will recreate the product objects
for installed products -- hopefully with the correct home attribute.


yes, as I said in the original message this is what I did. I was just 
asking if this is the expected behaviour of Control_Panel (which could 
break products using the home attribute, like in my case 
CMFQuickInstaller) and if there is a better(?) way that doesn't involve 
deleting the products and restarting zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-13 Thread Luca Olivetti

En/na Martijn Pieters ha escrit:

On 1/12/06, Luca Olivetti [EMAIL PROTECTED] wrote:

Everything has been working fine (apart for the breakage of
CMFQuickInstaller) but I wonder if this is the intended behavior and if
there is better way to update the information in Control_Panel (touching
__init__.py in the offending products and restarting zope didn't help, I
had to remove the products from the Control_Panel and restart zope).


I suspect that the .pyc files may still hold the old paths; remove the
.pyc files and restart to have them recreated, or used the Python
standard library script compileall.py to recreate these files.


I grepped the pyc files for the old path and I could not find it 
anywhere, so the path must be stored exclusively in the zodb.
Besides, this wouldn't explain the wrong path for the products included 
with zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-13 Thread Dieter Maurer
Luca Olivetti wrote at 2006-1-12 14:55 +0100:
A while ago I changed the directory of my zope instance. I also changed 
the zope directory (started with zope 2.8.1, now running 2.8.4). Today I 
noticed that the CMFQuickInstaller failed to get the version and the 
readme of various products.
It happens that CMFQuickInstaller uses 
Control_Panel.Products.getObj(id).home to determine the product's 
directory and then reads the version.txt file from there.
However many products had the old directory name stored in home (like 
/usr/local/zope-2.8.1-final instead of /usr/local/zope-2.8.4-final, or 
the directory I used before changing the name).

Zope's behaviour in handling product updates below Control_Panel.Products
is very difficult to understand.

Almost surely, it will help when you delete all closed products
there and then restart Zope. The restart will recreate the product objects
for installed products -- hopefully with the correct home attribute.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-12 Thread Martijn Pieters
On 1/12/06, Luca Olivetti [EMAIL PROTECTED] wrote:
 Everything has been working fine (apart for the breakage of
 CMFQuickInstaller) but I wonder if this is the intended behavior and if
 there is better way to update the information in Control_Panel (touching
 __init__.py in the offending products and restarting zope didn't help, I
 had to remove the products from the Control_Panel and restart zope).

I suspect that the .pyc files may still hold the old paths; remove the
.pyc files and restart to have them recreated, or used the Python
standard library script compileall.py to recreate these files.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )