-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the "info" attribute from ImageRequest (#408)
* img_request.py: create a replacement ImageRequest class * img.py: starting using the new request class * img_request.py: remember to import 'unquote' * img_request.py: restore the 'request_path' property * img_request.py: create the 'cache_path' property (renamed from as_path) * webapp.py: don't store the ImageInfo on the ImageRequest class * img_request.py: restore the 'request_resolution_too_large' method * webapp.py: use the new signature for request_resolution_too_large() * webapp.py: we use 'fmt' instead of 'format', as the latter is a keyword * webapp.py: pass the ImageInfo down into _make_image() * img_request.py: make region_param() a method * transforms.py: start plumbing ImageInfo into _derive_with_pil * transforms.py: pass 'img_info' through the transform() method * webapp.py: use the new transform() method * img_request.py: make size_param() a method * transforms.py: use the new size_param() method * img_request.py: add rotation_param() as a method * transforms.py: more bugfixes * img_request.py: simplify some path methods * img_request.py: bring back canonical_cache_path * Plumb through img_info some more * img_request.py: requests are immutable after creation! * img_request.py: small bugfix * Plumbing to support is_canonical() * Pass information around for the canonical Link header * transforms.py: plumbing through more info * transform.py: that's a function, not an attribute * transforms.py: clean up a few more .info instances * Start fixing more broken tests * More test fixes * webapp.py: one final fix to get tests passing * img_request.py: expand the docstring * Remove a whole pile of now-unused code * img_request_t.py: rearrange some test code * img_request_t.py: don't forget that import! * /s/fmt/format * webapp.py: tidy up the signature of _set_canonical_link() * transforms.py: consistent names in _scales_to_reduce_arg() * Move ImageRequest back into img.py * img_t.py: namespace correctly * transform(): Use 'image_request' instead of 'img_request' * transforms.py: more use of image_ instead of img_ * More naming things with img_ / image_ * A few more minor fixes and cleanups * webapp.py: import fixes * img_t.py: another import error * parameters.py: make the naming consistent * webapp.py: fill in that string interpolation
- Loading branch information
1 parent
b45f4c6
commit 47a3f68
Showing
8 changed files
with
270 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.