Re: [ZODB-Dev] Traceback with RelStorage 1.4.1 + Zope 2.12.12 + python_memcached 1.4.5

2010-10-25 Thread Sylvain Viollon
On Fri, 22 Oct 2010 19:05:18 +0200 Anton Stonor wrote: > 2010/10/22 Sylvain Viollon wrote: > > I have a Zope 2, using RelStorage and python_memcached. I use > > python_memcached because I use it in some other extension. > > > > I got the following traceback on a commit (..) > > > TypeError:

Re: [ZODB-Dev] "MySQL server has gone away" with RelStorage

2010-10-25 Thread Paul Winkler
On Sun, Oct 24, 2010 at 05:55:05PM +0100, Chris Withers wrote: > Restarting Zope appeared to fixed the problem, but I'm slightly confused > as I can't find any entries in the logs of the Apache instance that sits > in front of the test instances for the failed requests... Maybe turn on Zope's tr

Re: [ZODB-Dev] "MySQL server has gone away" with RelStorage

2010-10-25 Thread Chris Withers
On 25/10/2010 15:57, Paul Winkler wrote: > On Sun, Oct 24, 2010 at 05:55:05PM +0100, Chris Withers wrote: >> Restarting Zope appeared to fixed the problem, but I'm slightly confused >> as I can't find any entries in the logs of the Apache instance that sits >> in front of the test instances for the

Re: [ZODB-Dev] "MySQL server has gone away" with RelStorage

2010-10-25 Thread Paul Winkler
On Mon, Oct 25, 2010 at 05:53:05PM +0100, Chris Withers wrote: > On 25/10/2010 15:57, Paul Winkler wrote: > > On Sun, Oct 24, 2010 at 05:55:05PM +0100, Chris Withers wrote: > >> Restarting Zope appeared to fixed the problem, but I'm slightly confused > >> as I can't find any entries in the logs of

[ZODB-Dev] Default comparison considered harmful in BTrees.

2010-10-25 Thread Jim Fulton
I'm inclined to treat the use of the comparison operator inherited from object in BTrees to be a bug. I plan to fix this on the trunk. I'm tempted to fix this in 10.1. This change would make it impossible to add keys to BTrees or buckets or to add items to BTree-based sets if the key or items in

Re: [ZODB-Dev] Default comparison considered harmful in BTrees.

2010-10-25 Thread David Glick
On 10/25/10 10:51 PM, Jim Fulton wrote: > I'm inclined to treat the use of the comparison operator inherited > from object in BTrees to be a bug. I plan to fix this on the > trunk. > > I'm tempted to fix this in 10.1. This change would make it impossible > to add keys to BTrees or buckets or to a

Re: [ZODB-Dev] Default comparison considered harmful in BTrees.

2010-10-25 Thread Jim Fulton
On Mon, Oct 25, 2010 at 5:58 PM, David Glick wrote: > On 10/25/10 10:51 PM, Jim Fulton wrote: >> I'm inclined to treat the use of the comparison operator inherited >> from object in BTrees to be a bug.  I plan to fix this on the >> trunk. >> >> I'm tempted to fix this in 10.1.  This change would m

Re: [ZODB-Dev] Default comparison considered harmful in BTrees.

2010-10-25 Thread David Glick
On 10/25/10 11:07 PM, Jim Fulton wrote: > On Mon, Oct 25, 2010 at 5:58 PM, David Glick > wrote: >> On 10/25/10 10:51 PM, Jim Fulton wrote: >>> I'm inclined to treat the use of the comparison operator inherited >>> from object in BTrees to be a bug. I plan to fix this on the >>> trunk. >>> >>> I'

Re: [ZODB-Dev] Default comparison considered harmful in BTrees.

2010-10-25 Thread Marius Gedminas
On Mon, Oct 25, 2010 at 11:14:21PM +0100, David Glick wrote: > On 10/25/10 11:07 PM, Jim Fulton wrote: > > On Mon, Oct 25, 2010 at 5:58 PM, David Glick > > wrote: > >> On 10/25/10 10:51 PM, Jim Fulton wrote: > >>> I'm inclined to treat the use of the comparison operator inherited > >>> from objec

[ZODB-Dev] Can RelStorage be used as a ZEO Storage back-end?

2010-10-25 Thread David Carmean
I'm starting to dig into the code, but perhaps this can be answered quickly: can RelStorage be used in place of FileStorage for ZEO storage? I work with a product that has a number of dependencies upon ZEO, directly (Zenoss). Several months down the road, the are migrating from ZEO to RelSto

Re: [ZODB-Dev] Can RelStorage be used as a ZEO Storage back-end?

2010-10-25 Thread Alan Runyan
> I'm starting to dig into the code, but perhaps this can > be answered quickly: can RelStorage be used in place of > FileStorage for ZEO storage? My understanding is Yes. Try it. IIRC you can even use a ZEO storage in place of a FileStorage. You may want to specify what version of python, zodb

Re: [ZODB-Dev] Can RelStorage be used as a ZEO Storage back-end?

2010-10-25 Thread Shane Hathaway
On 10/25/2010 07:40 PM, David Carmean wrote: > I'm starting to dig into the code, but perhaps this can > be answered quickly: can RelStorage be used in place of > FileStorage for ZEO storage? It should work if a single ZEO server is the only client of RelStorage. > I work with a product that has