[Zope-Checkins] CVS: Zope2 - ExternalMethod.py:1.32

Ken Manheimer klm@korak.digicool.com
Thu, 9 Sep 1999 20:26:14 -0400

Update of /cvs-repository/Zope2/lib/python/Products/ExternalMethod
In directory korak.digicool.com:/projects/sites/Tracker/lib/python/Products/ExternalMethod

Modified Files:
Log Message:
ExternalMethod.__call__(): Fixed DevelopmentMode behavior so it didn't 
reload extenal method files every time.

The problem was that the entire os.stat() record was being compared,
and that includes the access time, which of course changes every time
the method is loaded - self fulfilling prophecy, and all.

Instead, we now just stash and compare the modification time
(ST_MTIME) field, and get rid of the extraneous (expensive) reloads.