Skip to main content

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 Plone will raise errors when you visit a file content that use BLOB support without also having the BLOB file.

For developers this can be a little bit boring. It’s quite common to copy a production Data.fs for developing using production data, but you don’t always want to copy all blobs.

This product monkey-patches parts of Plone, so that visiting objects that store content in the blob storage without having the BLOB available will not lead to errors. 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

  • Plone 5.0

  • Plone 5.1

  • Plone 5.2

For Plone 3 compatiblity 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

1.0 (2022-03-11)

  • Add support for relstorage. [pbauer]

  • Create dummy image blobs on the fly. [ale-rt, mauritsvanrees]

0.5.0 (2018-12-14)

  • Only patch plone.app.blob and Products.ATContentTypes if they are installed. This makes this package compatible with a Archetypes-free Plone. [gforcada]

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

Project details


Download files

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

Source Distribution

experimental.gracefulblobmissing-1.0.tar.gz (18.1 kB view details)

Uploaded Source

File details

Details for the file experimental.gracefulblobmissing-1.0.tar.gz.

File metadata

  • Download URL: experimental.gracefulblobmissing-1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for experimental.gracefulblobmissing-1.0.tar.gz
Algorithm Hash digest
SHA256 287a91081286790ba0afb6dfbcdb91d4b0e7995f454c5b0d4751a3edb1263f22
MD5 175538a3324fcabe347353db61e5067b
BLAKE2b-256 7085d7ef4b627d75c87ed141e265542927dbdc8a7863b911b90f937597878409

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page