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
Matthew Tretter
728368abf6
Add async cachefile backend
2013-04-02 22:29:53 -04:00
Matthew Tretter
86cd23e906
Remove actions module
2013-03-15 01:06:28 -04:00
Matthew Tretter
3d6a9de9aa
Add existence check timeout
2013-03-15 01:05:53 -04:00
Matthew Tretter
1e129c5b70
Convert to boolean
2013-03-15 00:49:24 -04:00
Matthew Tretter
70ff6dc788
Store state when force-generated
2013-03-15 00:30:58 -04:00
Matthew Tretter
c48c720f8a
Add __nonzero__ method that will work for async
2013-03-15 00:27:23 -04:00
Matthew Tretter
fc87c0497c
Add abstract cachefile backend for illustration
2013-03-15 00:20:15 -04:00
Matthew Tretter
54dda25adb
Generation goes through backend; use states
...
We might as well account for asynchronous generation in our
CachedFileBackend.
2013-03-15 00:19:19 -04:00
Matthew Tretter
ac92b77709
Fix loopy existence check
...
Sometimes two wrongs do make a right I guess. But better to have two
rights.
2013-03-14 23:04:30 -04:00
Matthew Tretter
f181d30008
Rename file_exists to exists
2013-03-14 22:58:28 -04:00
Matthew Tretter
044a3625f9
Correct error message
2013-03-14 22:55:40 -04:00
Matthew Tretter
c64eee40b3
Bump version to 3.0a5
2013-02-25 22:43:37 -05:00
Matthew Tretter
92a3c2688c
Error when attempting to generate image w/o source
2013-02-25 22:42:47 -05:00
Matthew Tretter
61aa1c32e7
Bump version to 3.0a4
2013-02-25 22:22:27 -05:00
Matthew Tretter
b33869a9f8
Sourceless specs are falsy
...
Passes test added in 190153d . Related to #187
2013-02-25 22:18:33 -05:00
Matthew Tretter
dff0182310
Remove another old util
2013-02-12 21:40:15 -05:00
Matthew Tretter
f5a078b68f
Remove old util
2013-02-12 21:40:15 -05:00
Matthew Tretter
5c944c5efb
Bump version to 3.0a3
2013-02-10 16:05:21 -05:00
Matthew Tretter
b53b7c3cae
Clarify ImageFieldSourceGroup docstrings
2013-02-10 16:01:50 -05:00
Matthew Tretter
90ae9e8339
Fix get_nonabstract_descendants
...
Previously, function was only returning the first non-abstract
descendant. (It should also return concrete descendants of concrete
descendants, which it now does.)
Also, converted to generator.
2013-02-10 15:58:22 -05:00
Matthew Tretter
df41459e65
Fix signals for abstract models
...
Includes a fix for undispatched signals, as well as signals being
handled twice.
A regression of #126
Related: #185
2013-02-10 15:42:10 -05:00
Sean Bell
af6ebcb469
Fixing iteration over objects for abstract models
2013-02-09 03:02:18 -05:00
Matthew Tretter
969275bbc9
Rename GeneratedImageFile to ImageCacheFile
2013-02-08 18:15:00 -05:00
Matthew Tretter
36313194ac
Remove PILKit functionality
...
This commit removes the functionality now in the PILKit project, and
adds PILKit as a dependency. Import hooks have been used to expose the
processors under "imagekit.processors".
2013-02-07 23:10:05 -05:00
Matthew Tretter
51dcf283fd
Fix default cache backend for Django < 1.3
2013-02-06 21:59:26 -05:00
Matthew Tretter
301adc2087
Let's call em cachefiles
...
Changed my mind about 04aa72c1f9 . It's
just a better description, even if different strategies can change the
behavior so it isn't really very cache-like.
2013-02-04 19:52:38 -05:00
Matthew Tretter
d22c49a465
Don't delete the file when source is deleted
...
We can't be sure another spec isn't using this file.
2013-02-04 19:48:42 -05:00
Matthew Tretter
218f569005
Don't assign processors, so properties will work
...
This way, a subclass can add a @property without a setter and not worry
about an error.
2013-02-02 19:21:32 -05:00
Matthew Tretter
58e1c7f7e0
Some docs
2013-02-01 01:37:49 -05:00
Matthew Tretter
f94b7276b3
Use "imagekit" instead of "ik" for built-in generator prefix
2013-02-01 01:31:51 -05:00
Matthew Tretter
50d83745bc
Remove unnecessary complexity of kwarg mapping
2013-02-01 01:02:20 -05:00
Matthew Tretter
08ebcbcbf3
Change html attrs delimiter to --
2013-02-01 00:56:29 -05:00
Matthew Tretter
92b11f8349
Use imagegenerators module, not imagespecs
2013-02-01 00:30:15 -05:00
Matthew Tretter
0947c1403f
Organize settings
2013-01-31 22:40:54 -05:00
Matthew Tretter
933ff79ac1
Make settings consistent
2013-01-31 22:38:48 -05:00
Matthew Tretter
e1c819e9b4
Allow default generatedfile name configuration w/namers
2013-01-31 22:37:09 -05:00
Matthew Tretter
bf1685dbfb
Generalize get_class util
2013-01-31 22:01:01 -05:00
Matthew Tretter
75962976d0
Add stringify methods to LazyGeneratedImageFile
2013-01-31 19:41:54 -05:00
Matthew Tretter
d6b73b8da7
Renaming/repackaging of generated file related classes
2013-01-31 19:24:08 -05:00
Matthew Tretter
8e6abc1e65
Remove ensure_exists
...
`generate()` now plays double duty
2013-01-31 10:07:27 -05:00
Matthew Tretter
01fad6e4c6
Fix registration bug
2013-01-31 10:07:27 -05:00
Matthew Tretter
04aa72c1f9
Rename cache things (it isn't cachine)
...
https://twitter.com/alex_gaynor/statuses/257558176965206016
2013-01-31 10:07:20 -05:00
Matthew Tretter
f0dbe32f7a
Fix pickling error
2013-01-29 02:27:03 -05:00
Matthew Tretter
54ca5da15d
Improve generator id pattern matching
...
This behavior allows users to easy generate images by app, model, or
field.
2013-01-29 02:22:00 -05:00
Matthew Tretter
e0ffb246ae
Always use colon as segment separator
2013-01-29 02:17:52 -05:00
Matthew Tretter
e48817a5ec
Update warmimagecache to use new cacheable registry
2013-01-29 01:53:23 -05:00
Matthew Tretter
ca4f090e63
Fix source callbacks on strategies
2013-01-29 01:48:06 -05:00
Matthew Tretter
3931b552a0
Separate source groups and cacheables.
...
This allows a sensible specialized interface for source groups, but also
for ImageKit to interact with specs using the generalized image
generator interface.
2013-01-29 01:40:00 -05:00