Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.



  • use all file content instead of 4Kb sample to extract MIME type to prevent errors when checking MS-Office files


  • rewrite getMagicContentType function for last python-magic release


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


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


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


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


  • changed package source layout


  • set content-type on BlobImage class data update
  • move file properties container IObjectCopiedEvent to ztfy.file package


  • removed unused package dependency


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


  • corrected import


  • corrected database automatic upgrade code


  • updated database automatic upgrade code


  • replace deprecated md5 module with hashlib.md5


  • Switched to ZTK-1.1.2


  • update database upgrade code used when creating a site manager


  • 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.

Files for ztfy.extfile, version 0.2.14
Filename, size File type Python version Upload date Hashes
Filename, size ztfy.extfile-0.2.14-py2.7.egg (65.9 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ztfy.extfile-0.2.14.tar.gz (24.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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