[Zope-dev] Using the monitor_client

Shane Hathaway shane@digicool.com
Tue, 31 Oct 2000 10:06:39 -0500


Yves-Eric Martin wrote:
>     I am no Zope monitor expert, but maybe you will find my newbie point

For some definition of newbie... :-)

> of view helpful. Here is my understanding of the magic of this very
> helpful tool:
> 
> - Zope.app() gives you a *copy* of the *real* application object.
> - app._p_jar.sync() reloads your copy with the real (losing your changes)
> - get_transaction().commit() writes your copy to the real (applying your
>     changes)

I didn't realize sync() was there.  Thanks for the tip!

Shane