[ZODB-Dev] ZODB 3.9.3 history call causing problems for storages that still accept version parameters

Jim Fulton jim at zope.com
Thu Nov 19 17:48:16 EST 2009


On Thu, Nov 19, 2009 at 5:38 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> Chris Withers wrote:
>>
>> Jim Fulton wrote:
>>>
>>> I'm fine with change the storage server to pass the history size
>>> argument as a keyword parameter.
>>
>> Okay, but where is the Z309 equivalent of ZEOStorage308Adapter's history
>> method?
>
> Ug, the answer is much less pleasant :-(
>
> So, a ZODB 3.9.3 ClientStorage calls the ServerStub's history method, this
> does an rpc call:
>
> self.rpc.call('history', oid, length)
>
> Which comes in on the server and gets despatched straight out in:
>
> /ZEO/zrpc/connection.py", line 581, in handle_request
>
> This, of course, means we can't pull the keyword parameters trick, since
> ZEO's rpc doesn't support keyword parameters from what I saw...
>
> I'm not sure what to suggest here...

What's wrong with the original idea of having the server pass the size
as a keyword parameter? The ZEO protocol is irrelevant. (Unless it's
relevent somehow in the guts of ZEORAID, in which case, I don't care.
:)

Jim

-- 
Jim Fulton


More information about the ZODB-Dev mailing list