Use blobs for ATNewsItem field

Anthony Gerrard <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CAHA8JiQbe+QTyXfN_sFK0SmDmSRRaHptgVama94=Ebzk_WrDXg@mail.gmail.com>
I've spent a bit of time investigating this pull request and thought I'd
send in a quick report for posterity.

https://github.com/plone/plone.app.blob/pull/2

When I tested migrating existing content the server fell over with an
out-of-memory error.  There's also a bug in the committed code which needed
tweaking ( ATNewsItemToBlobNewsItemMigrator<https://github.com/keul/plone.app.blob/blob/master/src/plone/app/blob/migrations.py#L170>
 )


News item images did seem to work OK for new news items.

Unfortunately the approach of creating new objects and thereby loosing the
history would be unacceptable to my client and so I'm not going to be doing
any more work on this pull request.

I've also had a think about adopting the approach recommended in the plone
upgrade guide of simply changing the field.

http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/use-plone.app.blob-based-blob-storage

This is inconsistent with the way plone.app.blob works with File and Image
and might therefore be better in a separate product.  Unfortunately I don't
have time to do figure out all the implications and am instead going to try
adding this to my client's custom product.

I'm sorry I don't have more time to get a solution into the core for this.

yours

Anthony

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.