Matthew Tretter
56f8d1b8bc
Create form field class; re: #163
2012-10-25 22:46:28 -04:00
Matthew Tretter
6377f89e85
IKContentFile must have name attr
2012-10-25 22:43:10 -04:00
Matthew Tretter
570e7bd640
Simplify SpecHost creation
2012-10-25 22:31:37 -04:00
Matthew Tretter
76b9ebbab4
Omit missing kwargs so as not to override defaults
...
The default image cache strategy was being overridden, which prevented
images from being generated.
2012-10-25 22:25:18 -04:00
Matthew Tretter
006ff54fa8
Clean up version meta.
2012-10-25 20:01:26 -04:00
Eric Eldredge
9973e80a37
Add test requirements to setup
2012-10-24 23:45:51 -04:00
Matthew Tretter
fb8c411f75
Create new cache warming command
...
Replaces ikcachevalidate and ikcacheinvalidate, and uses the "sources"
abstraction. Closes #165
2012-10-24 23:41:05 -04:00
Matthew Tretter
84f3b6475b
Add files() generator. Re: #165
2012-10-24 23:41:05 -04:00
Eric Eldredge
d27836983a
Use nose to run tests
...
Closes #160
2012-10-24 23:30:55 -04:00
Matthew Tretter
adf143edc5
add_source -> add_sources; switch argument order
2012-10-24 22:30:10 -04:00
Matthew Tretter
bdec396180
Support inner Config class for id, sources
...
Closes #164
2012-10-24 22:23:53 -04:00
Matthew Tretter
8d3fcafcd9
Swap argument order for specs.register
...
This will allow us to put the id in the inner Meta class.
2012-10-24 22:14:45 -04:00
Matthew Tretter
606f59a102
Add docs page about configuration & optimization
2012-10-21 21:52:59 -04:00
Matthew Tretter
d110b82347
Rename imagekit_tags to imagekit
2012-10-21 17:59:56 -04:00
Matthew Tretter
3dbb96ea40
Remove unused imports
2012-10-21 17:57:53 -04:00
Matthew Tretter
fa54b9b6ef
Document file-generation aspect of specs
2012-10-21 17:55:18 -04:00
Matthew Tretter
3e2c3803ff
No need to call spec; the registry does that
2012-10-20 23:44:26 -04:00
Matthew Tretter
0c4d9738c6
Add TODO
2012-10-20 23:44:13 -04:00
Matthew Tretter
12493b3a0d
Spec host must support kwarg "hints"
...
The registry's `get_spec()` was already supporting kwargs as a means to
provide information about the source to the spec constructor/factory
function, but the ``SpecHost`` class wasn't capable of accepting any.
This commit rectifies that. The main goal purpose of this is to allow a
bound field (the file attached by ``ImageSpecFileDescriptor``)--and the
attached model instance--to be taken into account during the spec
instance creation.
Related: #156
2012-10-20 23:29:07 -04:00
Matthew Tretter
aa91a70e46
Make specs know less about source files
2012-10-20 22:53:55 -04:00
Matthew Tretter
e796b4cc61
Create ImageSpec subclasses
...
Since the `ImageSpec` constructor will be accepting keyword arg hints,
it can no longer accept the properties.
2012-10-20 22:15:25 -04:00
Matthew Tretter
b0b466618f
Separate two forms of tag; support additional html attrs
...
Closes #154
2012-10-17 23:41:34 -04:00
Matthew Tretter
770a8cebf4
Fix iteration error
2012-10-17 21:35:19 -04:00
Matthew Tretter
e300ce36a4
Use new registry name
2012-10-17 21:25:19 -04:00
Matthew Tretter
4f52e401d2
Handle null format
2012-10-17 21:24:57 -04:00
Matthew Tretter
98a6fff62d
Add DEFAULT_FILE_STORAGE Setting; Closes #153
2012-10-17 21:09:04 -04:00
Matthew Tretter
ca1db05c4e
Use named logger
2012-10-17 21:00:32 -04:00
Matthew Tretter
a265fd79e1
Correct example image URLs
...
Generated files are stored in the media folder, not static
2012-10-17 11:00:59 -04:00
Matthew Tretter
d8ce11e86e
Log warning when filename doesn't match expected value
2012-10-17 01:11:05 -04:00
Matthew Tretter
806ebd75b6
Don't return file from generate()
...
The file is `self`
2012-10-17 00:37:02 -04:00
Matthew Tretter
ca324b7f52
Remove unused import
2012-10-17 00:32:31 -04:00
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