Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

kotti_filestore

Filesystem storage of BLOBs for Kotti.

Find out more about BLOB storage in Kotti

Setup

You also need an option to tell Kotti to use the kotti_filestore add-on and to configure the location where the BLOBs will be stored on the filesystem. The line in your [app:main] (or [app:kotti], depending on how you setup Fanstatic) section could then look like this:

kotti.blobstore = kotti_filestore.filestore://%(here)s/filestore

The kotti_filestore.filestore part will cause Kotti to delegate the storage of BLOBs to this class. The %(here)s/filestore is an example configuration for the storage which will cause all BLOBs to be stored in a directory named filestore which will be automatically created in the same directory where your config file resides.

Configuration

Currently a single configuration option exists. The absolute path of the directory where kotti_filestore stores the BLOBs can be specified with the path segment of the configuration URL.

To overcome limitations w.r.t. the maximum number of files within a directory on some filesystems, kotti_filestore generates a directory tree with a depth of 16, where each directory has a maximum of 256 children (either subdirectories or files).

TODO

  • kotti_filestore tries to be fully transaction aware.

    It does so by using repoze.filesafe for filesystem operation on files. Unfortunately repoze.filesafe doesn’t provide functions for directories. That’s why kotti_filestore may leave some empty directories on your filesystem. Files are removed properly on deletion of the corresponding content items though.

    As a workaround you are encouraged to setup a cronjob that scans for empty directories periodically and removes them.

Contibutors

  • Andreas Kaiser

  • Sebastian Brass

Changelog

0.1a

  • Initial release.

Metadata

Release files for kotti_filestore 0.1a

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kotti_filestore 0.1a
File Size Uploaded
kotti_filestore-0.1a.tar.gz 5.8 kB Details

Release files / kotti_filestore-0.1a.tar.gz

Download URL kotti_filestore-0.1a.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
92de7e485832071f1e1b5ddb1cdc8b1e3bfeb2d035eefee56e3b29ca241d30c9
BLAKE2b-256 checksum
How to use checksums
7e4cd5b572f11d1c247a886c65ad2d84289742e58e267c2883a7970511fffc47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1a This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page