Commit graph

793 commits

Author SHA1 Message Date
Matthew Tretter
4ff55724dc Separate source group tests; signal counting util 2013-05-25 00:04:22 -04:00
Matthew Tretter
397a79ba56 Combine source_created and source_changed
As discussed in #214, source_created and source_changed didn't really
have clear definitions. In truth, their names and separation betray
their origins as model receivers in earlier versions. The "source group"
abstraction helped us get away from thinking about things exclusively in
terms of models, but these remained as an artifact.
2013-05-24 23:21:30 -04:00
Matthew Tretter
0d5bfe3751 Define NullHandler for Python <= 2.6
Closes #219
2013-05-20 19:19:13 -04:00
Matthew Tretter
80008aee11 Merge pull request #215 from saulshanabrook/patch-5
pass in upscale keyword to thumbnail template tag
2013-05-20 16:09:05 -07:00
Matthew Tretter
32522114db Improve default cache backend handling 2013-05-13 21:28:41 -04:00
Saul Shanabrook
6023e9216a pass in upscale keyword to thumbnail template tag 2013-05-11 09:12:29 -03:00
Matthew Tretter
34739819aa Fix None checks
Files can be falsy
2013-05-10 04:43:01 -04:00
Matthew Tretter
c89b18aa95 Split before_access into two signals
Differentiating between when the generated file content is required and
when the generated file is just required to exist gives us more
flexibility with strategies.
2013-05-10 04:39:46 -04:00
Matthew Tretter
6db082bca2 Reset content pointer 2013-05-10 03:08:43 -04:00
Matthew Tretter
906fbbd463 Reduce calls to backend
Reading from an `ImageCacheFile`, will result in accessing its `file`
attribute repeatedly which would result in the `before_access` signal
being dispatched, which in turn would result in many unnecessary calls
to the image cache backend. With this change, we don't send
`before_access` if the file has already been created.

Similarly, we don't need to try to generate the image if we know for
certain that it's already been generated (because we have a reference
to it).
2013-05-10 02:56:44 -04:00
Matthew Tretter
bc49f9cf8b Store the file after we generate it
This means reading ImageCacheFiles won't result in an additional storage
operation.
2013-05-10 02:42:28 -04:00
Matthew Tretter
06dd238993 Store cachefile strategy on file; not generator
The file can appeal to the generator for the value, but it shouldn't
require it; it just does that as a convenience.
2013-05-10 00:51:47 -04:00
Matthew Tretter
d5d5fc0550 Add cachefile backend fallback
The generator shouldn't have to implement `cachefile_backend`
2013-05-10 00:26:46 -04:00
Matthew Tretter
4efa05099d Use pilkit's process_image utility 2013-05-09 22:02:03 -04:00
Matthew Tretter
82eb69b3be Merge pull request #212 from saulshanabrook/patch-2
No makefile, so changed testing to run tox
2013-05-02 19:26:13 -07:00
Saul Shanabrook
92a9184ed3 Use tox to run all tests 2013-05-01 00:19:51 -03:00
Saul Shanabrook
0de80cf59c No makefile, so changed testing to run setup.py test 2013-05-01 00:06:55 -03:00
Saul Shanabrook
2304381b3d Changed contributing guidelines link to branch develop 2013-05-01 00:05:10 -03:00
Matthew Tretter
6b75822eb3 Show build status of develop branch 2013-04-30 22:52:23 -04:00
Matthew Tretter
84dcebbefe Add @saulshanabrook to AUTHORS 2013-04-30 22:06:09 -04:00
Matthew Tretter
676d49c605 A few corrections; more about caching file data 2013-04-30 21:56:55 -04:00
Matthew Tretter
2064434042 Merge branch 'saulshanabrook/revise-docs' into develop 2013-04-30 20:52:58 -04:00
Matthew Tretter
d94c4bb0a9 Merge branch 'canon-pickle' into develop 2013-04-30 20:50:29 -04:00
Saul Shanabrook
4a608caf3a moved models in front of source groups in the advanced docs 2013-04-30 18:34:42 -04:00
Saul Shanabrook
deed81b963 Added caching docs 2013-04-30 18:30:51 -04:00
Matthew Tretter
eb36ae399e Add test for memcached key sanitation 2013-04-30 09:32:47 -04:00
Matthew Tretter
f173861b53 Fix invalid char range 2013-04-30 09:32:47 -04:00
Matthew Tretter
c704db2da5 Sanitize cache keys for memcached
Closes #208
2013-04-30 09:32:47 -04:00
Bryan Veloso
bc0c17010e Bryan, we use reST. >_<; Refs #206. 2013-04-25 11:33:29 -07:00
Bryan Veloso
a3498c5aa1 Add a build status image to the README. Fixes #206. 2013-04-25 11:29:27 -07:00
Matthew Tretter
f5b171979b Canonicalize sets and dicts before hashing 2013-04-25 02:30:37 -04:00
Matthew Tretter
3e019f5dac Merge pull request #204 from danxshap/close_file_fix
Re-open source file on ValueError in ImageSpec.generate()
2013-04-23 10:59:14 -07:00
Matthew Tretter
0a98eb0e79 Use DEFAULT_FILE_STORAGE by default
As raised in #203, if `IMAGEKIT_DEFAULT_FILE_STORAGE` isn't set,
`DEFAULT_FILE_STORAGE` should be used.
2013-04-22 09:05:49 -04:00
danxshap
13c92db760 Re-open source file on ValueError in ImageSpec.generate() 2013-04-21 16:06:13 -04:00
Eric Brelsford
7946fe54b5 processors in PILKit: module
Help those looking in the code find processors.
2013-04-10 14:24:02 -04:00
Eric Brelsford
90c4529d26 processors in PILKit: documentation 2013-04-10 14:19:25 -04:00
Matthew Tretter
261f164127 Bump version to 3.0b1 2013-04-05 16:43:26 -04:00
Matthew Tretter
c4431fe296 Don't require generator to unregister 2013-04-05 16:41:53 -04:00
Matthew Tretter
4b2e6341f9 Merge branch 'south-fix' into develop 2013-04-05 16:38:28 -04:00
Matthew Tretter
6f9f99e86c Fields shouldn't cause AlreadyRegistered exceptions 2013-04-05 15:28:36 -04:00
Matthew Tretter
091b2137d0 Always call set_spec_id 2013-04-05 14:57:41 -04:00
Matthew Tretter
41ab2c0fa3 Use different name for different signature 2013-04-05 14:57:11 -04:00
Matthew Tretter
dafebc9a4d Don't call register without spec 2013-04-05 14:38:29 -04:00
Matthew Tretter
9891314b8e Don't error if same generator is registered 2013-04-05 12:25:02 -04:00
Matthew Tretter
681527fa9d Remove implicit source logic from descriptor
This needs to be known earlier, when registering the source group, so
we do it in `contribute_to_class` instead.

Closes #188.
2013-04-03 00:21:04 -04:00
Matthew Tretter
c0ce3b5209 Add "Deferred Generation" section to docs 2013-04-02 23:31:15 -04:00
Matthew Tretter
28ffd444d6 Relax Pillow testing requirement 2013-04-02 23:01:44 -04:00
Matthew Tretter
fbf052ce5f Fix test: update DummyAsyncCacheFileBackend API 2013-04-02 23:00:54 -04:00
Matthew Tretter
2b10e85813 Clarify "force" kwarg 2013-04-02 22:55:44 -04:00
Matthew Tretter
3ca8c53698 Also defer existance check 2013-04-02 22:37:52 -04:00