Commit graph

3327 commits

Author SHA1 Message Date
Karl Hobley
083cd8e61c Merge pull request #780 from kaedroho/image-filters-refactor
Added new image operations
2015-01-17 12:28:28 +00:00
John Franey
79e6951d95 Update form_builder.rst
These old tag libraries have been replaced by ```wagtailcore_tags``` according to (http://wagtail.readthedocs.org/en/latest/core_components/pages/writing_templates.html?highlight=pageurl#internal-links-tag)[here] and (http://wagtail.readthedocs.org/en/latest/core_components/pages/writing_templates.html?highlight=rich_text#rich-text-filter)[here].
2015-01-17 00:42:58 -05:00
Karl Hobley
fd247e69cd Changelog/release notes for #854 2015-01-15 13:59:54 +00:00
Karl Hobley
c9d4e42b63 Added @jerel to contributors 2015-01-15 13:57:43 +00:00
Karl Hobley
cc0d982bbb Added test for #854 2015-01-15 13:56:37 +00:00
Jerel Unruh
347158cb41 Fixed a bug that prevented sitemap url generation override in a Page subclass
If a developer wants to turn off urls for a specific page as documented in http://docs.wagtail.io/en/latest/contrib_components/sitemap_generation.html#customising they should be able to add:

    def get_sitemap_urls(self):
        return []

but get_urls() calls only the parent class rather than the specific child class. This bug is also mentioned in issue #833
2015-01-15 13:47:14 +00:00
Karl Hobley
41b9d6f466 Use Willow for focal point detection 2015-01-15 13:38:07 +00:00
Karl Hobley
91de79ddc3 Updated generate_url view filter spec validation 2015-01-15 13:37:59 +00:00
Karl Hobley
e505c08677 Frontend serve now uses new filters and Willow 2015-01-15 13:35:04 +00:00
Karl Hobley
5cdb7b794b get_rendition now uses new filters and Willow 2015-01-15 13:32:39 +00:00
Karl Hobley
f9e682e032 Improvements to image operation error handling
Invalid operations should now raise InvalidFilterSpecError from their __init__ method if the passed arguments are invalid.

Created "construct" method which is called by __init__. If this method raises a ValueError, that error would be reraised as an InvalidFilterSpecError.

Argument count is validated before calling construct so we no longer need to catch all TypeErrors.
2015-01-15 13:02:19 +00:00
Karl Hobley
9fdf096574 Added run tests for image operations 2015-01-15 11:38:16 +00:00
Karl Hobley
20e69a1ec8 Apply #797 to new image operations 2015-01-15 11:37:51 +00:00
Karl Hobley
65d83174e0 Added some tests for filter spec parsing 2015-01-15 11:37:41 +00:00
Karl Hobley
19309b02e7 Added get_vary and get_vary_key to Filter
This allows a filter operation to specify which strings of data it used
inside the image to perform its calculations. This can be used to
determine whether an image has changed in such a way that requires new
renditions to be made.
2015-01-15 11:36:35 +00:00
Karl Hobley
2662866719 Added new filter running code
- Loads image operations using hooks
- Uses Willow

Not yet removed old code to keep commit changes as clean as possible
2015-01-15 11:36:35 +00:00
Karl Hobley
9e7ad03d86 Added new image operations 2015-01-15 11:36:35 +00:00
Karl Hobley
d751e76298 get_willow_image now raises SourceImageIOError
... when the source image cannot be found in the filesystem
2015-01-15 11:34:22 +00:00
Karl Hobley
aa9e6ce7bf Merge pull request #777 from kaedroho/willow
Added Willow support
2015-01-15 11:03:32 +00:00
Karl Hobley
f1ebd96c1d Added get_willow_image method to Image 2015-01-15 10:46:37 +00:00
Karl Hobley
4a804967d9 Added Willow to install requirements 2015-01-15 10:46:01 +00:00
Matt Westcott
d43b2057c5 Merge branch 'janrito-fieldpanel-custom-widgets' 2015-01-14 22:06:47 +00:00
Matt Westcott
d73e618e83 docs and release note for #880 2015-01-14 22:06:38 +00:00
Matt Westcott
b4e1791c16 Merge branch 'fieldpanel-custom-widgets' of https://github.com/janrito/wagtail into janrito-fieldpanel-custom-widgets 2015-01-14 21:02:33 +00:00
Dave Cranwell
1ace03b4ff Merge pull request #904 from coredumperror/page_type_on_editor
Add the page type to the page creator/editor template
2015-01-14 09:28:48 +00:00
Robert Rollins
fb49cd68e3 Add 'model-' prefix to body class. 2015-01-13 10:00:11 -08:00
Robert Rollins
1714f33310 Moved classname from form to body. 2015-01-12 16:05:56 -08:00
Robert Rollins
98f74fcb5a Added class name and UI elements to identify page type while editing. 2015-01-12 15:52:25 -08:00
Dave Cranwell
db03fd8e90 making missed strings translatable 2015-01-09 17:09:15 +00:00
Dave Cranwell
a076ec6cd0 resovling test error 2015-01-09 16:52:42 +00:00
Dave Cranwell
9fe6f04d7b fixed failing test. added more meta information to images and documents 2015-01-09 16:42:20 +00:00
Dave Cranwell
9d7b26a5d4 added link to file for images and documents. also updated styling to file fields, which had become lost in previous field template refactoring. 2015-01-09 15:55:13 +00:00
Dave Cranwell
2aa411c041 updated fonts, which had somehow become half quality 2015-01-09 11:09:29 +00:00
Dave Cranwell
551bdcf8ca font smoothing added where it was missing 2015-01-09 10:15:56 +00:00
Dave Cranwell
6e166e03f5 better syntax highlighting 2015-01-08 17:29:24 +00:00
Dave Cranwell
6a36ed7f7e added title tags to inline panel icon-only buttons 2015-01-08 17:28:35 +00:00
Dave Cranwell
101fd1c044 auto-focus on first field in visible content 2015-01-08 17:12:07 +00:00
Dave Cranwell
6ed3303ad0 removed border from images, which conflicted with all other images from external django apps #502 2015-01-08 17:00:34 +00:00
Matt Westcott
1fb1db98e3 no longer need South introspection rule for RichTextField 2015-01-07 13:33:39 +00:00
Matt Westcott
2c50f07136 add py34-dj17-sqlite to travis tests 2015-01-06 15:38:32 +00:00
Matt Westcott
50a3eb64f0 Clean up image records created in test_duplicate_filters; we can't rely on the usual transaction logic to do this when using multiple threads. Fixes #892 2015-01-06 15:36:58 +00:00
Matt Westcott
09663a6653 Django 1.7.2 has an apparent regression that breaks django-taggit with sqlite https://github.com/alex/django-taggit/issues/285 - pin sqlite tox tests to 1.7.1 for now 2015-01-06 14:48:49 +00:00
Matt Westcott
af8fee8efa Merge branch 'kaedroho-remove-dj16' 2015-01-06 11:24:27 +00:00
Matt Westcott
598d3f8b7f Merge branch 'remove-dj16' of https://github.com/kaedroho/wagtail into kaedroho-remove-dj16 2015-01-06 11:17:56 +00:00
Karl Hobley
15228b11aa Removed Django 1.6 support from test settings 2015-01-02 17:27:59 +00:00
Karl Hobley
bbf606926c Removed Django 1.6 support from test_migrations 2015-01-02 17:27:59 +00:00
Karl Hobley
47713c128c Removed Django 1.6 support from utils/apps.py 2015-01-02 17:27:59 +00:00
Karl Hobley
6c8981792e Removed Django 1.6 support from search query 2015-01-02 17:27:59 +00:00
Karl Hobley
04c56ea49b Cleaned up backend loading code 2015-01-02 17:27:59 +00:00
Karl Hobley
4e8a6b309f Always use Pythons builtin unittest module
As we've dropped Python 2.6, the builtin unittest module will always be
unittest2
2015-01-02 17:27:59 +00:00