[Zope] Re: finding orphaned Product objects

Fred Yankowski fred at ontosys.com
Wed Mar 10 17:20:33 EST 2004


On Wed, Mar 10, 2004 at 10:33:23PM +0100, Dieter Maurer wrote:
> Delete all (closed) products in "Control_Panel --> Product management",
> then restart Zope. The still installed products will get recreated.

Interesting idea; I might try that.

I sometimes see exception backtraces that refer to old locations of
products, where they were when most recently installed (I think) and
not under the current $INSTANCE_HOME/Products.  I suppose that your
procedure would fix that.

> Be careful: instances from no longer installed products may pose
>   significant problems.

Yes, but the products that are removed by your procedure would be
exactly those that are no longer available on the filesystem.  So
wouldn't any instances from those products have been broken in the
first place, before deleting the products?  (Assuming that no product
files have changed since the last zope restart).  I know that I don't
have any broken objects in the zope instance I'm working on.

-- 
Fred Yankowski      fred at ontosys.com           tel: +1.630.879.1312
OntoSys, Inc	    PGP keyID: 7B449345        fax: +1.630.879.1370
www.ontosys.com     38W242 Deerpath Rd, Batavia, IL 60510-9461, USA



More information about the Zope mailing list