Commit graph

8303 commits

Author SHA1 Message Date
Karl Hobley
0a1c8f57e7 Update CHANGELOG.txt 2015-01-18 14:25:54 +00:00
Karl Hobley
b8e757c692 Changelog/release note for #878 2015-01-18 14:22:15 +00:00
Karl Hobley
ac24f7c4c5 Minor coding style fix 2015-01-18 14:17:37 +00:00
Karl Hobley
5728639dd4 Merge pull request #878 from davecranwell/fixing-preview
Fixing preview
2015-01-18 14:16:02 +00:00
Karl Hobley
62a1f7a466 Merge pull request #782 from kaedroho/delete-old-images-code
Delete old images code
2015-01-17 15:10:04 +00:00
Karl Hobley
c9e3cb52a5 Deleted old images code 2015-01-17 14:52:38 +00:00
Karl Hobley
6667db8aeb Image previews use new filters code 2015-01-17 14:50:14 +00:00
Karl Hobley
6e7bef74ec Merge pull request #910 from johnfraney/patch-1
Update form_builder.rst
2015-01-17 12:41:48 +00:00
Karl Hobley
7e78d28040 Merge pull request #781 from kaedroho/make-renditions-use-willow-and-new-filters
Start using Willow and new image operations
2015-01-17 12:31:28 +00:00
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
Matt Westcott
3aaebe3b6d give StreamValue a native HTML rendering 2015-01-16 21:35:06 +00:00
Matt Westcott
160f38bbbb Merge branch 'feature/streamfield' into feature/streamfield-frontend 2015-01-16 14:56:03 +00:00
Matt Westcott
b734f009e2 Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
Conflicts:
	wagtail/wagtailadmin/templates/wagtailadmin/edit_handlers/inline_panel_child.html
2015-01-16 14:55:37 +00:00
Matt Westcott
d536fc8315 Merge branch 'master' of github.com:torchbox/wagtail into feature/streamfield
Conflicts:
	wagtail/wagtailadmin/templates/wagtailadmin/shared/field.html
2015-01-16 14:51:09 +00:00
Matt Westcott
440e9a850b Refactor StreamField and the rest of the blocks API to explicitly distinguish between the renderable values that we work with, and their json-serialisable form 2015-01-16 14:01:17 +00:00
Dave Cranwell
a6bab4e649 preliminary styling of streamblock fields 2015-01-15 15:00:21 +00: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
Matt Westcott
3694756e4e try to implement to_python and get_prep_value; run into awkward discrepancies between renderable and JSON-ish values 2015-01-14 20:55:25 +00:00
Matt Westcott
e1cf9f9196 Add StreamField as a model field type, and implement 'deconstruct' for migration support 2015-01-14 15:41:05 +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
Matt Westcott
3386ee53e6 replace FieldBlock rendering with a template-based version that tries to replicate our standard form field markup 2015-01-13 14:55:55 +00: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
Matt Westcott
622762f0e2 field.field_classnames and field.input_classnames are never defined (they were removed from python code in ca8d38b4ab) 2015-01-12 20:25:43 +00: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