Removed the cache_dir, cache_filename_fields and cache_filename_format
properties of IKOptions. While these were very powerful, I felt that it was
unnecessarily confusing to have two properties (cache_dir and
cache_filename_format) that determine the filename. The new cache_to property is
modeled after ImageField's upload_to and behaves almost identically (the only
exception being that a callable value receives different arguments). In
addition, I felt that the interpolation of model properties provided by
cache_filename_fields, though useful, would be better handled by a utility
function outside of this library.
This works kind of like Django's models' _default_manager. If your specs don't
specify an image_field, and your IKOptions don't specify a default_image_field,
the first ImageField your model defines will be used.
Tests were failing because they assumed that the file was deleted upon
teardown. This isn't the case after Django 1.3, where this no longer
happens. This fix removes any orphaned files (and directories) that were
created via the testing process.
* release/0.4.0:
Think it's time to bump to 0.4.0.
Adding Markus and Matt to AUTHORS.
Added ability to specify specs in IKOptions directly.
Improve fault tolerance of Accessor._delete()
fix issue #12
proper python comments in readme
Adding Josh to the contributors list.
Being a good PyPI citizen.
allowing any fields on the object to be specified for use in naming of generated images; default to allowing pk
Added the pk of the object into the dictionary of values passed to the string formatting for cache_filename.
Added the quality property in the readme's ImageSpec classes just to show it is possible to change it at will.
Fixes: CMYK files from Photoshop fails to load with exception -2
* release/0.3.6:
Bumping the verison numbers.
Whitespacing.
Adding Jonathan Slenders to AUTHORS (thanks for spotting that signals bug).
fixed 'sender' not defined bug (2)
fixed 'sender' not defined bug
Instead of overriding Model.delete(), we'll connect a public clear_cache() method to a post_delete() signal so that bulk actions clean props as well.