[zope2-tracker] [Bug 143899] Re: Pdata objects can not be Pickled once the chain is longer than 500

Tres Seaver tseaver at palladion.com
Mon Apr 12 12:56:31 EDT 2010


Can you please provide a failing testcase against OFS.Image.File which
does *not* try to create the File object passing a file to its
constructor?  E.g.:

  def test_cant_pickle_PData(self):
       file = self._makeFile()
       file.manage_upload(self._makeReallyBigTempFile())
       s = cPickle.dumps(f)

This is the reason that 'OFS.Image.manage_addFile' does the add of a new
empty file, and only calls manage_Upload after seating the object into
its container:  the PData optimization fails for Files constructed with
file objects (because there is no _p_jar yet).

** Changed in: zope2
       Status: New => Incomplete

-- 
Pdata objects can not be Pickled once the chain is longer than 500
https://bugs.launchpad.net/bugs/143899
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list