[z3-five] ConnectionStateError: Shouldn't load state for 0x04 when the connection is closed

Morten W. Petersen morten at nidelven-it.no
Fri Jul 28 00:05:05 CEST 2006


Looks like it is working!  Thank you very much Yuppie, this was a
showstopper..

-Morten

yuppie wrote:
> Hi Morten!
> 
> 
> Morten W. Petersen wrote:
>> I'm running some custom products (nothing fancy) on Plone 2.5 with Five
>> and other things.
>>
>> The following message appears every now and then;  I tried asking for
>> help on plone-users but nobody replied, and seeing that Five is involved
>> in the traceback I thought I'd ask here.
>>
>> Anyone know what's going on?
> 
> I did have the same problem and today I applied the following patch on
> my server. AFAICS pythonproducts has a quite fragile way to get hold of
> the root object (AKA app).
> 
> Index: pythonproducts.py
> ===================================================================
> --- pythonproducts.py    (Revision 69227)
> +++ pythonproducts.py    (Arbeitskopie)
> @@ -124,7 +124,7 @@
>          product=self.aq_acquire('_getProducts')()._product(name)
> 
>          # Try to get a custom dispatcher from a Python product
> -        productPkgs = product_packages(app)
> +        productPkgs = product_packages(self.getPhysicalRoot())
>          dispatcher_class=getattr(
>              productPkgs.get(name, None),
>              '__FactoryDispatcher__',
> 
> 
> You are invited to test this patch and to report back if it causes any
> trouble. If the patch solves the problem without creating new problems
> it should be checked in.
> 
> 
> Cheers,
> 
>     Yuppie
> 



More information about the z3-five mailing list