[Zope] Python Products

Michel Pelletier michel@digicool.com
Tue, 21 Dec 1999 09:55:55 -0500


> -----Original Message-----
> From: Stephen Pitts [mailto:smpitts@midsouth.rr.com]
> Sent: Monday, December 20, 1999 4:10 PM
> To: zope@zope.org
> Subject: [Zope] Python Products
> 
> 
> Is there any way to get Zope to reread a Python product's 
> files without
> restarting? 

If Zope is running in debug model, all HTMLFile objects and external
methods are reloaded every time they are hit.  The only way to reload
python code is to restart Zope.

> I'm developing using a cycle like this:
> * change .py file in lib/python/Products/*
> * save changes
> * restart Zope (takes 10 seconds :-()
> 
> Is there a better way?

You could try developing a patch that uses the python reload() method.

-Michel