Matthew Tretter
41fa197212
Remove save kwarg--that's what generate() does!
2012-10-17 00:31:38 -04:00
Matthew Tretter
a08edaca56
Handle storage in BaseIKFile
2012-10-17 00:29:51 -04:00
Matthew Tretter
97d47c9c6c
Remove generate_file. apply() does it all!
...
There was a lot of garbage in that method and I don't know why.
2012-10-17 00:23:38 -04:00
Matthew Tretter
77b33f757c
Correct example
2012-10-17 00:07:29 -04:00
Matthew Tretter
4c4727fa9f
Remove unused import
2012-10-17 00:07:29 -04:00
Matthew Tretter
63ad9e4421
Remove registration methods from template tag
...
The registry isn't just for template tags anymore.
2012-10-17 00:07:28 -04:00
Matthew Tretter
a93832626a
Return string from render method
...
...instead of wrapping the file with an object that has a __unicode__
method. If you want the actual file, you should use the assignment form.
2012-10-17 00:07:23 -04:00
Matthew Tretter
9b81acd10c
Don't pass removed argument
2012-10-16 23:52:31 -04:00
Matthew Tretter
5c6d1aef5d
Rename ImageSpecFile
...
You can generate other "spec" files (using apply will get you one). This
one is for saving cache files and its name should reflect that.
2012-10-16 23:51:26 -04:00
Matthew Tretter
df8905f7e4
Remove unused imports
2012-10-16 23:39:10 -04:00
Matthew Tretter
738bbfa9a1
Move cache file naming into ImageSpecFile
2012-10-16 23:38:44 -04:00
Matthew Tretter
5ca8b7f4ba
Rename process_file; don't return image object
...
This function will just be used to apply the spec and create a new file;
useful for transforming images in views, etc.
2012-10-16 22:59:40 -04:00
Matthew Tretter
fdc08aeeb0
Don't extend ImageFieldFile
...
This file isn't just for fields anymore, so we want to get rid of all
the ORM stuff.
2012-10-16 22:52:01 -04:00
Matthew Tretter
13b59ef85e
Reorder methods
2012-10-16 22:33:17 -04:00
Matthew Tretter
a4ef8aa681
Add before_access signal
2012-10-16 22:30:36 -04:00
Matthew Tretter
3308c92a71
Remove SpecWrapper class
...
We don't need it now that we have an ImageSpec class
2012-10-16 22:23:14 -04:00
Matthew Tretter
37e0de3069
Move signals module
2012-10-16 22:10:52 -04:00
Matthew Tretter
8ef1437bea
Remove apply() method
2012-10-16 22:06:24 -04:00
Matthew Tretter
1452f04cda
Remove unused parameter
2012-10-16 22:03:50 -04:00
Matthew Tretter
7f6e97a37a
Rename Pessimistic to JustInTime
2012-10-16 21:46:23 -04:00
Matthew Tretter
ca391fbf0a
Change cache prefix
2012-10-16 21:43:17 -04:00
Matthew Tretter
80b723b510
Move IKContentFile to imagekit.files
2012-10-16 21:31:47 -04:00
Eric Eldredge
c0b79a227d
Remove ImageSpecFieldFile in favor of ImageSpecFile
2012-10-15 23:53:05 -04:00
Eric Eldredge
2a33a2ad88
Fix circular import utils > imagecache.backends
2012-10-15 21:17:58 -04:00
Matthew Tretter
5fe5a73cb1
Update docs
...
This will be great when 3.0 is ready, but it'll
also serve as a nice guide for us as we develop.
2012-10-14 22:29:59 -04:00
Eric Eldredge
93409c8f05
SpecRegistry's spec can be callable (spec factory)
2012-10-14 21:35:07 -04:00
Eric Eldredge
461fbaef1a
Processors no longer callable
2012-10-14 18:48:17 -04:00
Matthew Tretter
dc84144d6b
Pass additional info with source signal
2012-10-14 16:08:48 -04:00
Matthew Tretter
7ce05f468a
Pass attname to dispatch_signal
...
This allows any file object to be used--even those that don't have a
`field` attribute. For example, you could theoretically use one spec
field as a source for another.
2012-10-14 15:41:35 -04:00
Matthew Tretter
7447d147d4
Wire up source events to specs (and image cache strategies)
...
Also change signal names to past tense to match convention.
2012-10-13 01:16:05 -04:00
Matthew Tretter
2222451712
Merge branch 'sources' into ik-next
2012-10-13 00:23:00 -04:00
Matthew Tretter
cedd744e32
Add description of registry
2012-10-13 00:22:30 -04:00
Matthew Tretter
440fcb19ef
Correct signal relaying
2012-10-12 23:43:51 -04:00
Matthew Tretter
a59330cf2c
Add class description
2012-10-12 23:12:05 -04:00
Matthew Tretter
8a35b3a3dd
Registration and connection of sources
2012-10-12 23:08:26 -04:00
Matthew Tretter
fe803f8981
Beginning to move functionality into "sources"
...
Before this is applied, we're going to have to make it so that the
image cache strategies are passed the source file, not the other file.
2012-10-10 00:18:54 -04:00
Matthew Tretter
06e5f45904
Remove unused imports
2012-10-04 23:43:02 -04:00
Matthew Tretter
667f0cc08e
Simplify IMAGEKIT_CACHE_BACKEND setting
2012-10-04 23:41:20 -04:00
Matthew Tretter
436a73dc9a
Remove image cache backend field registration
2012-10-04 23:28:55 -04:00
Matthew Tretter
5a1dd0c459
Don't require spec to be created up-front
2012-10-04 23:27:19 -04:00
Matthew Tretter
ce08448207
Rename register_spec() to set_spec_id()
2012-10-04 23:22:25 -04:00
Matthew Tretter
56c66f4883
Back ProcessedImageField with spec registry
2012-10-04 23:15:16 -04:00
Matthew Tretter
82d0e4be73
Remove unused imports
2012-10-04 23:03:22 -04:00
Matthew Tretter
f289ff3199
Back ImageSpecFields with spec registry
...
This marks a major step towards centralizing some of the "spec" logic
and creating a single access point for them. Because `ImageSpecFields`
are just alternative interfaces for defining and registering specs,
they can be accessed and overridden in the same manner as other specs
(like those used by template tags): via the spec registry.
2012-10-04 22:56:26 -04:00
Matthew Tretter
99ba61d605
Move spec registry
2012-10-04 22:02:29 -04:00
Matthew Tretter
116b0bc0c5
Move spec classes to specs module
2012-10-04 21:58:22 -04:00
Matthew Tretter
30ba1d890e
Move exceptions
2012-10-04 21:57:33 -04:00
Matthew Tretter
0cc7938400
Re-integrate receivers module
...
Somewhere along the line, a change got merged that stopped using the
receivers module. This re-integrates it and moves changes made to the
old receivers (static methods on ImageSpecField) to them.
2012-10-04 21:44:55 -04:00
Matthew Tretter
d2087aa168
Create ImageSpecs; remove generators
2012-10-04 21:37:20 -04:00
Matthew Tretter
675fd02afb
Merge branch 'tt' into ik-next
2012-10-04 18:55:25 -04:00