Skip to main content

ZTFY package used to handle files and images in Zope3

Project description

=================
ztfy.file package
=================

.. contents::

What is ztfy.file ?
===================

ztfy.file is a set of classes to be used with Zope3 application server.
The purpose of this package is to handle :
- custom schema fields with their associated properties and browser widgets to
automatically handle fields as external files
- automatically handle generation of images thumbnails for any image ; these
thumbnails are accessed via a custom namespace ("++display++w128.jpeg" for example to get
a thumbnail of 128 pixels width) and are stored via images annotations
- allow selection of a square part of a thumbnail to be used as a "mini-square thumbnail".

Square thumbnails selection is based on JQuery package extensions, so the ztfy.jqueryui is
required to use all functions of ztfy.file package.


How to use ztfy.file ?
======================

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


Changelog
=========

0.2.10
------
- changed package source layout

0.2.9
-----
- include IObjectCopiedEvent subscriber moved from ztfy.extfile package
- remove default JPEG format when creating thumbnails (thumbnails are now created by default
using the same file format as the original image); JPEG is only used as default when source
image is not in JPEG, PNG or GIF format
- use PIL to get image size when not in JPEG, PNG or GIF format
- added 'display:' TALES adapter to easily get display adapter from page templates

0.2.8
-----
- update imports for last ztfy.jqueryui and ztfy.skin packages

0.2.7
-----
- automatically add filename extension in name of FileField or ImageField attributes
values.
WARNING: since then, getting field data directly from request returns a tuple made of file
content and file name !!
- use mimetypes package to get content-type for text files
- updated doctests

0.2.6
-----
- modified ++file++ and ++display++ namespaces to accept an extension

0.2.5
-----
- added ImageFieldDataConverter to check that uploaded files are really images

0.2.4
-----
- changed position of file input fields
- changed handling of jQuery's "imgAreaSelect" plug-in

0.2.3
-----
- added check in image field widget thumbnail generation code

0.2.2
-----
- added extension in displays URLs
- changed square thumbnails management by using JQuery "imgAreaSelect" plug-in
- handle NOT_CHANGED value in square thumbnails converters

0.2.1
-----
- handle z3c.form NOT_CHANGED value in file field data converter
- migrated resources management from zc.resourcelibrary to Fanstatic

0.2
---
- Switched to ZTK-1.1.2

0.1.1
-----
- added a little sharpening on thumbnails generation
- added conversions while getting position and dimension of square thumbnails generation

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.file-0.2.10.tar.gz (145.0 kB view details)

Uploaded Source

Built Distribution

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

ztfy.file-0.2.10-py2.7.egg (187.0 kB view details)

Uploaded Egg

File details

Details for the file ztfy.file-0.2.10.tar.gz.

File metadata

  • Download URL: ztfy.file-0.2.10.tar.gz
  • Upload date:
  • Size: 145.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ztfy.file-0.2.10.tar.gz
Algorithm Hash digest
SHA256 e1d262962a19f0dbc69de1f4c2c34ec22dd240dc5ebdb6895099c69f063c5c20
MD5 4bd83fc10e03a0affc3105e64646665e
BLAKE2b-256 e9189120602e4a13795e4b0554c5504d8aa61c5bb1a68af41da8631911980c0d

See more details on using hashes here.

File details

Details for the file ztfy.file-0.2.10-py2.7.egg.

File metadata

  • Download URL: ztfy.file-0.2.10-py2.7.egg
  • Upload date:
  • Size: 187.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ztfy.file-0.2.10-py2.7.egg
Algorithm Hash digest
SHA256 63945549d32a362031193acde9a120c2c755999c57e468247a1750edc79cfb26
MD5 fdca666bd5e9627ed3c52ffcd027dd46
BLAKE2b-256 7074f10442d0226f72bcc0d2c1050dd8884ed6e5a31983b85d7c916b56fe15f4

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