Skip to main content

ZTFY package used to handle external files storage in Zope3

Project description

What is ztfy.extfile ?

ztfy.extfile is a package which allows storing File and Image objects data outside of the Zope database (ZODB), into ‘external’ files. Files can be stored in the local file system, or remotely via protocols like SFTP or NFS (even HTTP is possible) ; an efficient cache system allows to store local copies of the remote files locally.

Finally, external files can be stored via Blob objects, provided by the latest versions of the ZODB.

How to use ztfy.extfile ?

A set of ztfy.extfile usages are given as doctests in ztfy/extfile/doctests/README.txt.

Changelog

0.2.13

  • rewrite getMagicContentType function for last python-magic release

0.2.12

  • add extra content-type check through PIL for images not handled natively

0.2.11

  • reset default blobs opening mode to ‘r’ but add mode argument in getBlob() method

0.2.10

  • changed blob read mode to ‘c’ to get access to blob data after database connection is closed

0.2.9

  • updated IBaseBlobFile interface

  • registered IResult adapter for ZODB.blob.BlobFile (copied from z3c.blobfile package)

0.2.8

  • changed package source layout

0.2.7

  • set content-type on BlobImage class data update

  • move file properties container IObjectCopiedEvent to ztfy.file package

0.2.6

  • removed unused package dependency

0.2.5

  • added ‘__nonzero__’ boolean operator to check for empty files

0.2.4

  • corrected import

0.2.3

  • corrected database automatic upgrade code

0.2.2

  • updated database automatic upgrade code

0.2.1

  • replace deprecated md5 module with hashlib.md5

0.2

  • Switched to ZTK-1.1.2

0.1.1

  • update database upgrade code used when creating a site manager

0.1

  • 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

ztfy.extfile-0.2.13.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ztfy.extfile-0.2.13-py2.7.egg (65.9 kB view details)

Uploaded Egg

File details

Details for the file ztfy.extfile-0.2.13.tar.gz.

File metadata

  • Download URL: ztfy.extfile-0.2.13.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ztfy.extfile-0.2.13.tar.gz
Algorithm Hash digest
SHA256 f888268959b597fbcbdbb050124c90380a95b5629ee4ddac05b5c3c63f856d54
MD5 64fbc069b61d7bdc82073af41ca17385
BLAKE2b-256 0740851b1de676d1e377de7184af682c51a0383b7be8511d8526234ebcdbeb1e

See more details on using hashes here.

File details

Details for the file ztfy.extfile-0.2.13-py2.7.egg.

File metadata

File hashes

Hashes for ztfy.extfile-0.2.13-py2.7.egg
Algorithm Hash digest
SHA256 790101b189af1ba4f6fb19da7061c8e3a0df72b569b4934ad50de8d5631f8fc9
MD5 25c09f6a6ee7b49fb407b61601d9ebb9
BLAKE2b-256 fdfa33c32620d178fab46245d9c5c8dac3d71cdb33c825623955910ee33733ec

See more details on using hashes here.

Supported by

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