[Zope-ZEO] import problem

Júlio Dinis Silva juliodinis@hotmail.com
Tue, 25 Jul 2000 12:39:48 WEST


> > when I try to import a folder with more than 500 objects (images) into 
>zodb
> > using a zeo client I get this error:
>
>Dang.
>
>In ClientCache.py, please change:
>
>
>     def checkSize(self, size):
>         # Make sure we aren't going to exceed the target size.
>         # If we are, then flip the cache.
>         if self._pos+size > self._limit:
>             current=not current
>             self._current=current
>             self._f[current]=open(self._p[current],'w+b')
>             self._f[current].write(magic)
>             self._pos=pos=4
>
>to:
>
>
>     def checkSize(self, size):
>         # Make sure we aren't going to exceed the target size.
>         # If we are, then flip the cache.
>         if self._pos+size > self._limit:
>             current=not self._current
>             self._current=current
>             self._f[current]=open(self._p[current],'w+b')
>             self._f[current].write(magic)
>             self._pos=pos=4
>
>and please let me know if this corrects the
>problem.
>
>Jim


Perfect! Problem corrected!

Thanx,
Júlio Dinis Silva
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com