[Zope] FYI: Portal Toolkit Slides and Demo available
Howard Clinton Shaw III
shawh@sths.org
Fri, 11 Jun 1999 10:35:56 -0500
On Thu, 10 Jun 1999, Andrew M. Kuchling wrote:
> Paul Everitt writes:
> >Hmm, I'm surprised that you'd advocate automatic reloading, as it would
> >(at a minimum) stat a file on each request. Do you think it should be
> >an optional knob to specify whether to check for changes? If so, what
> >should be the default?
>
> I think it would have to be adjustable, defaulting to off (no
> stat(), no reload).
>
> >Would better documentation help? For instance, we intend, once Zope2
>
> To some degree, though the need is much higher-level than UML
> documentation. For example, one problem was simply uncertainty over
> whether the ExternalMethod was in fact the best approach. Also, so
> far I've only feebly attempted to use the debugger with Zope, but
> should probably make a focused effort to get that working, perhaps in
> concert with Emacs' debug-mode.
>
> >I presume by the leading part of the question that you would feel more
> >comfortable doing your processing in Python than all-DTML. If Zope had
> >a "Python Method" object, perhaps only usable by VERY privileged users,
> >perhaps only in the Control Panel (say, in a Product), would that help?
>
> Probably not; the problem isn't so much understanding a
> completed method, as in debugging a non-working method. A Python
> Method object would simply provide another way to type in code that
> would then be exceedingly painful to debug.
>
It is a point here, that debugging is often a focused, time-intensive affair on a
non-production platform. Granted that there may be inherent challenges in the
code that I cannot predict, it seems to me that a knob in the Method object
permitting you to turn on an 'auto-reload' that uses stat() EVERY time the
Method is accessed would be an invaluable tool during the writing/debugging
phase. Obviously this would have to be disabled subsequently, before the
Method is used in a production environment, but for someone trying to debug their
code, a stat() is a hell of a lot less overhead than having to surf to the Method, reload
and surf back to the test spot!
> --
> A.M. Kuchling http://starship.python.net/crew/amk/
> Chemistry is physics without thought; mathematics is physics without purpose.
> -- Anonymous
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
--
Howard Clinton Shaw III - Grum
St. Thomas High School
#include "disclaimer.h"