Skip to main content
Help us improve Python packaging – donate today!

Patch for Plone. Don't raise errors for file contents with missing BLOB file

Project Description

How to use

The BLOB support in Plone is amazing for a lot of reasons.

However, right now, Plone will raise errors when you visit a file content that use BLOB support, without having also the BLOB file.

I don’t know if this is good or not (I opened an issue related to this), but for developers this can be a little boring. It’s quite common to copy a production Data.fs for developing something using production data, but you don’t always want to copy all blobs.

This product monkey-patches some points inside Plone, so visiting objects that store content in blob-Fields (like ATFile/ATImage) without its BLOB available will not show any errors to visitors. Instead a file only containing the string “File created by experimental.gracefulblobmissing.” is created in the place where the blob-file should be.

Catalog

This product also patches the SearchableText Archetypes method, so you can reindex you catalog without errors.

Requirements

This product has been tested on:

  • Plone 4.0
  • Plone 4.1
  • Plone 4.2
  • Plone 4.3

For Plone 3 compatiblity, look stay on version 0.3.0 or lower.

Warning

This is designed only for development/staging environment. Do not use in production if you are not 100% sure of what you are doing!

Credits

Developed with the support of S. Anna Hospital, Ferrara; S. Anna Hospital supports the PloneGov initiative.

OspFE logo

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.4.0 (2015-04-29)

  • modify patch to not touch every file but only create file with a string in it when it is missing [pbauer]
  • patch ZEO to create missing blob-files [pbauer]
  • add logging-message when creating a missing blog-file [pbauer]
  • fixed errors when reindexing SearchbleText index [keul]
  • Added a patch for ZODB egg that Create the blob folder path and create (touch) an empty file for each blob file if it’s missing. [sneridagh]

0.3.0 (2011-09-30)

  • fixed dependency on collective.monkeypatcher >= 1.0 [keul]
  • pached also getScale method, used by some atct views [keul]

0.2.0 (2011-06-06)

  • fixed dependencies [keul]
  • direct access to files with missing blobs now redirect to the view with a warning [keul]

0.1.0 (2010-11-19)

  • initial release

Release history Release notifications

This version
History Node

0.4.0

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
experimental.gracefulblobmissing-0.4.0.tar.gz (13.7 kB) Copy SHA256 hash SHA256 Source None Apr 29, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page