[Zope] Zope woes continue - server going down regularly. (pos
sible solution)
Michel Pelletier
michel@digicool.com
Thu, 9 Dec 1999 10:22:33 -0500
> -----Original Message-----
> From: Cayce Ullman [mailto:c_ullman@yahoo.com]
> Sent: Wednesday, December 08, 1999 9:53 PM
> To: Michel Pelletier; 'Tres Seaver'; zope@zope.org
> Cc: Michel Pelletier; Cayce Ullman; panda@skinnyhippo.com
> Subject: RE: [Zope] Zope woes continue - server going down regularly.
> (pos sible solution)
>
>
>
>
> Well, I'm not suprised to find out that it was
> something I was doing wrong. However, the
> symptons still sound fairly similar and I wouldn't
> be suprised it someone his site is doing something
> similar. Also, I tried :
> x = Zope.app()
> x.close()
>
> And it complains that x has no attribute close.
>
I talked more to Jim about this and we decided that it is a bad idea to
open another connection in an external method.
The reason is because when you're in an external method, you are
allready bound to an object that has a connection, opening another and
mixing changes between the wo connections is probably a bad idea.
To get the *top level* root object in Zope, unwraped (no acquisition),
do:
self._p_jar.root()['Application']
The wraped object can come from
PARENTS[-1]
or you can walk up self._aq_parent.
-Michel