[Zope] forcing all pythonscripts to recompile.

Dieter Maurer dieter@handshake.de
Tue, 31 Jul 2001 21:56:01 +0200 (CEST)


Anthony Baxter writes:
 > >>> "Norman Khine" wrote
 > > you need to open the actual script and save it. i don't think there is a
 > > simpler way, although, you may write a python script, which will open the
 > > files and then save it, but you are on your own here;^)
 > 
 > Given that this is dozens of scripts, and that you can't even use 'Find' to
 > find them all (since 'Find' won't traverse into ZClasses) this is a pretty
 > unpleasant task. It also means that the Last Changed date on all scripts 
 > will be reset to today - not good if you use the last changed at all when
 > using the mgmt interface.
I would change the code...

  If Zope is able to generate the log entry, it should
  (at that place) also be able to automatically recompile
  the script.

I do not yet have the problem, though, as I did not yet
switch to Zope 2.4.


Dieter