Wykres commitów

2842 Commity (544fe11eace85c2d31add721dd817ea7ac7026bb)

Autor SHA1 Wiadomość Data
Alejandro Giacometti 544fe11eac added Page.check exceptions for all parent classes
`Page.check` must be aware of all foreign keys which point
to parent classes. These keys are allowed to cascade on delete.
2014-11-10 14:42:30 +00:00
Dave Cranwell 102121a244 Added to wrong section previously 2014-11-07 11:53:37 +00:00
Dave Cranwell 36e0b7c3fe Update CHANGELOG.txt 2014-11-07 11:53:06 +00:00
Dave Cranwell d0d1df2ede resolving jquery ui css requesting missing images 2014-11-07 11:51:00 +00:00
Dave Cranwell 16893ed2ce Updated screenshot 2014-11-07 11:37:45 +00:00
Matt Westcott 48957a998f Prepare for 0.8.1 release 2014-11-05 22:05:48 +00:00
Karl Hobley 8a3ccbef26 Access feature attributes by index
When the FocalPoint class was removed, detect_features was updated to return tuples.

This commit fixes a typo where the x and y attributes were still being accessed as attributes.
2014-11-05 17:02:38 +00:00
Karl Hobley c506f6751f Update consideration for DB search API change 2014-11-05 14:47:34 +00:00
Matt Westcott 25c62356bf Set version numbers for 0.8 release 2014-11-05 14:34:40 +00:00
Matt Westcott 1350f7a835 Add Dutch to translations list 2014-11-05 10:47:13 +00:00
Matt Westcott cd299258fc Merge branch 'kaedroho-image-frontendserve-refactor' 2014-11-05 10:24:01 +00:00
Matt Westcott 66304ee71b Release note for #753 2014-11-05 10:23:50 +00:00
Matt Westcott 45b85c7d7d Front-end cache is no longer necessary for image generator 2014-11-05 10:13:39 +00:00
Karl Hobley 67e3ff5bb0 Send the file from the view without redirecting 2014-11-04 17:22:24 +00:00
Karl Hobley fbb061e2a0 Added preview view to admin
As the frontend serve view now uses renditions, previews are now
generated with their own view to prevent loads of unneeded renditions
being created.
2014-11-04 17:22:24 +00:00
Karl Hobley 34579b6d43 Serving images to external sites uses renditions
Previously, an image served to an external site was rendered on the fly.
This may have performance issues with large websites.

This commit changes the image serve view to use renditions so images are
only rendered when the url is first accessed. When the user hits the
url, they are now given a permanent redirect to the renditions image.
2014-11-04 17:22:24 +00:00
Karl Hobley 3bd6178f29 Merge pull request #783 from kaedroho/translations-08
Translation updates for wagtail 0.8
2014-11-04 17:20:41 +00:00
Matt Westcott 2bb56510c1 Merge pull request #752 from kaedroho/images-refactor
Images: Remove FocalPoint class
2014-11-04 17:18:22 +00:00
Karl Hobley 37ce659edd Run compilemessages 2014-11-04 17:16:17 +00:00
Karl Hobley 37ea75f8d7 Run makemessages 2014-11-04 17:14:20 +00:00
Karl Hobley 42d197b46f Fetched new translations from transifex 2014-11-04 17:11:45 +00:00
Karl Hobley 27832b3282 Return None when no features detected 2014-11-04 17:10:43 +00:00
Matt Westcott 0d25c1bd95 Merge pull request #637 from kaedroho/search/api-fixes
Search: Make database backend behave like Elasticsearch backend. Fixes #460
2014-11-04 16:20:33 +00:00
Dave Cranwell 86fc1f0d1a Fixing meaningless test that would forever fail.
IE9 doesn't support conditional comments so testing "if IE 9" would always be false. Additionally this also meant no HTML tag was actually output for any other browser either! As we don't support IE8 either, testing for IE8 was also pointless.
2014-11-03 16:14:30 +00:00
Dave Cranwell 36a5a7704c Clarify how fill works with images that can't upscale. 2014-11-03 14:15:16 +00:00
Karl Hobley 638c6bc947 Removed wagtailimages/utils folder 2014-11-03 10:09:30 +00:00
Karl Hobley 4afdbaadca Added tests for set/get focal point methods 2014-11-03 10:09:30 +00:00
Karl Hobley 404615e1df Added tests for Rect class 2014-11-03 10:09:29 +00:00
Karl Hobley 58caa3566e Added get_rect method to image 2014-11-03 10:09:29 +00:00
Karl Hobley 293addd921 Removed FocalPoint class
And refactored code that used it to use Rect instead
2014-11-03 10:09:29 +00:00
Karl Hobley cd62c72dcc Changed API for setting/getting focal points
Previously, we used a property to do this. Heres the advantages of the
new way:
 - The old way felt a bit like it was pretending to be a database field
   when it wasn't. The new way makes it easier for the developer to
   understand that this is just a setter/getter for 4 fields and not a
   field itself.
 - Code looks nicer
 - Easier to override in subclasses
 - More like Django user model
2014-11-03 10:09:29 +00:00
Karl Hobley f379634eb7 Update roadmap.rst 2014-10-31 19:34:36 +00:00
Matt Westcott 609bec10c0 Release note for #773 2014-10-31 11:05:20 +00:00
Matt Westcott 03ead75791 Merge pull request #773 from kaedroho/search/analyser-fix
Don't use edgengram as query analyser
2014-10-31 10:57:20 +00:00
Matt Westcott ff6447b0ef Merge branch 'master' of github.com:torchbox/wagtail 2014-10-31 10:47:56 +00:00
Matt Westcott c84876b2bb Merge branch 'kaedroho-issue-756' 2014-10-31 10:47:45 +00:00
Matt Westcott 96f83b3171 release note for #767 2014-10-31 10:47:19 +00:00
Matt Westcott e00ae6bdc0 Merge branch 'issue-756' of https://github.com/kaedroho/wagtail into kaedroho-issue-756
Conflicts:
	wagtail/wagtailcore/tests/test_page_model.py
2014-10-31 10:45:00 +00:00
Karl Hobley 57ae33e5a5 Updated tests 2014-10-31 09:35:33 +00:00
Karl Hobley 7af321a2e9 Don't use edgengram as query analyser
When a field uses the partial matching, the edgengram_analyser is added
to that field.

This breaks down the field data into "ngrams" like so:
Hello -> "H", "He", "Hel", "Hell", "Hello"

This allows a users query for "Hel" to match the above text.

The issue that this commit solves is that this was accidentally set as
both the index analyser (as described above) and also the query
analyser.

Setting this as the query analyser will instruct Elasticsearch to
perform the above transformation on the users input to the box as well.
So if, for example, there was a document with the word "Horse" in it, a
users query for "Hello" will match this simply because they both start
with the letter "H".

The solution is to simply set the "index_analyser" instead of the
"analyser" field (which will sets "query_analyser" as well).
2014-10-30 16:45:52 +00:00
Karl Hobley 869a16f5fa Update frontendcache.rst 2014-10-30 16:25:15 +00:00
Matt Westcott 9dd493ace7 Only redirect back to edit page for the save action - not publish or submit 2014-10-30 16:14:45 +00:00
Matt Westcott f62b0d5d67 Merge branch 'master' of github.com:torchbox/wagtail 2014-10-30 15:35:09 +00:00
Matt Westcott 367a099989 Release note + upgrade note for #769 2014-10-30 15:34:56 +00:00
Matt Westcott 10f4d05894 Merge pull request #769 from kaedroho/issue-735
Don't update descendant urls if slug not updated. Fixes #735
2014-10-30 15:07:48 +00:00
Matt Westcott b14d8d398e Merge branch 'kaedroho-mope-584-fix-formbuilder-checkboxes' 2014-10-30 14:47:28 +00:00
Matt Westcott bdeaea7b55 release note for #768 2014-10-30 14:47:14 +00:00
Karl Hobley 8266684c37 Use form.cleaned_data when processing submissions
This fixes #584. It also doesn't pack single values into lists and will
remove csrftoken for us.
2014-10-30 14:38:41 +00:00
Tom Talbot b65adb295d Unit test for form-builder forms with multiple checkboxes 2014-10-30 14:38:41 +00:00
Karl Hobley 5db1539e0a Don't update descendant urls if slug not updated
Fixes #735

Previously, if you called Page.save with update_fields and didn't include
'slug', it would still attempt to update URL paths of descendant pages.

Wagtail 0.7 introduced a feature where it saves the latest revisions
created at date on the Page. This requires a Page.save call which used
update_fields. The bug caused update_descendant_paths to be called
anyway even though the slug wasn't committed to the database.

This caused Issue 735 because publishing a page will both save a
revision and save a page causing two hits to update_descendant_paths.
Running this method twice caused all descendant pages url_path
attributes to get mangled.
2014-10-30 10:44:05 +00:00