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.14
use all file content instead of 4Kb sample to extract MIME type to prevent errors when checking MS-Office files
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
Release files for ztfy.extfile 0.2.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ztfy.extfile-0.2.14.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ztfy.extfile-0.2.14-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 90.8 kB
Release files / ztfy.extfile-0.2.14.tar.gz
| Download URL | ztfy.extfile-0.2.14.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06dc177862e5c7859ceecf079f9f508d376309195efbddae201cb48b26b44295
|
|
BLAKE2b-256 checksum How to use checksums |
fb472614de0df5bfd6d239569f8f2abdeaba0f90b0cfb3e74f5e07635774fc99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ztfy.extfile-0.2.14-py2.7.egg
| Download URL | ztfy.extfile-0.2.14-py2.7.egg |
|---|---|
| Size | 65.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6917a9d491bab19a8a8aa5795a039ccd1524be94af4c63f1afc0c3332f780945
|
|
BLAKE2b-256 checksum How to use checksums |
199504661e48e8fae831eca9c7f28bc0b93930becc1b5914c0dfda5e1ccb9e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |