Re: ZEditingContextSessioning failing to init

Paul Mylchreest <[email protected]> Fri, 3 Mar 2006 19:21:41 -0500
Newsgroups gmane.comp.python.modeling
Message-ID <[email protected]>
Hi again,

I applied the patch and here are the logs (I deleted the registered =20
callback):

<server 1>
------
2006-03-03T18:53:40 INFO(0) Products.ZEditingContextSessioning Adding =20=

a 'defaultEditingContext' attribute to TransientObject
------
2006-03-03T18:53:40 INFO(0) Products.ZEditingContextSessioning Adding =20=

a 'defaultEditingContext' attribute to TransientObject
------
2006-03-03T18:53:40 INFO(0) Products.ZEditingContextSessioning =20
Product's Control Panel: Properties tab already initialized
------
2006-03-03T18:53:40 INFO(0) Zope Ready to handle requests
</server 1>


<server 2>
------
2006-03-03T18:54:15 INFO(0) Products.ZEditingContextSessioning =20
session's deletion hook already registered
------
2006-03-03T18:54:15 INFO(0) Products.ZEditingContextSessioning Adding =20=

a 'defaultEditingContext' attribute to TransientObject
------
2006-03-03T18:54:15 INFO(0) Products.ZEditingContextSessioning =20
Product's Control Panel: Properties tab already initialized
------
2006-03-03T18:54:15 INFO(0) Zope Ready to handle requests
</server 2>

Also, when tracing defaultEditingContext(), each server seems to =20
return a different EC.

Server1: session.id: 11414313110001400458 ec: =20
<Modeling.EditingContext.EditingContext object at 0x284b0f0>
Server2: session.id: 11414313110001400458 ec: =20
<Modeling.EditingContext.EditingContext object at 0x26bb9d0>

Thanks,
Paul

On 3-Mar-06, at 18:28 , S=E9bastien Bigaret wrote:

> Thanks for all the precisions; this is definitely a situation that =20
> should be detected and handled by the product.
>
> I've opened ticket #1442766 for that.
> http://sourceforge.net/tracker/index.php?=20
> func=3Ddetail&aid=3D1442766&group_id=3D58935&atid=3D489335
>
> If you have some time, could you try the attached patch (replacing =20
> the one sent earlier) ?
>
> I've had some tests and more zLog statements: I've no zeo env. at =20
> hand, I have no time for trying to set up one and I do not have any =20=

> real experience w/ zeo environments, so if you could install this =20
> patch and report the observed logs for the second zeoclient, that =20
> will be a great help for me to fully understand how zeo works.  In =20
> particular, I'd like to determine whether TransientObject is also =20
> shared and correctly setup or not --I think it is not, and, well, =20
> we'd better be sure! or the second, 3rd etc. zeo instances won't =20
> have any SESSION.defaultEditiingContext.
>
> -- S=E9bastien.
>
>
> PS: LOG statements at the INFO level for the purpose of =20
> verifications --they should be DEBUG or BLATHER when committed.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642