Re: zope2 rdb and reconnect

[email protected] Sun, 09 Dec 2007 13:42:46 -0500
Newsgroups gmane.comp.web.zope.database
Message-ID <[email protected]>
Found the problem.
I back ported this connector from a zope3 app.  For the retry, being
raised was rdb.interfaces.Retry, I changed it to raise ZPublisher.Retry,
which works for zope2.

Maybe there is a better way for zope2, but this works.

-Kevin

Brian Sutherland wrote:
> On Thu, Dec 06, 2007 at 12:00:58PM +0100, [email protected] wrote:
>   
>> I am wondering about the behavior of the publisher  in regards to  
>> rdb.ZopeDatabaseAdapter when a Retry is raised do to a 
>> mysqldba.OperationalError.
>>
>> From what I understand, when Publisher recieves a Retry it again retries 
>> the request, 
>>     
>
> The zope3 publisher definitely does this. Does the Zope2 publisher
> recognize Retry as well? (It probably should)
>
>   
>> but in my current case I see the error message. Is my 
>> understanding correct that this is what should happen?  If so, does this 
>> hold true for xmlrpc calls as well?
>>
>> I am using Zope2.9.8-Final, Five 1.4.4, and making requests with xmlrpc.
>>
>>
>> -Kevin
>> _______________________________________________
>> Zope-DB mailing list
>> [email protected]
>> http://mail.zope.org/mailman/listinfo/zope-db
>>
>>     
>
>