Commit graph

2631 commits

Author SHA1 Message Date
Dave Cranwell
5cd83f0216 put back missing import 2014-07-07 15:14:33 +01:00
Dave Cranwell
725c5edff6 Changed explorer menu to be loaded only on request, to prevent bloating of html 2014-07-07 15:11:52 +01:00
Matt Westcott
d8979570ba Merge pull request #344 from kaedroho/searchchanges/newsearchconfig
Search Changes 3 - New field configuration format
2014-07-07 13:36:44 +01:00
Dave Cranwell
3d14d8e628 tweaks for ie11 2014-07-07 11:53:55 +01:00
Dave Cranwell
4860399034 tidying 2014-07-07 10:34:58 +01:00
Dave Cranwell
85c9e3eaaf getting tag fields working 2014-07-07 10:34:12 +01:00
Dave Cranwell
508e85a0cb further tweaks to upload ui 2014-07-07 10:14:23 +01:00
Matt Westcott
00e12cccaf Merge branch 'master' into feature/fep2
Conflicts:
	docs/index.rst
2014-07-04 22:00:46 +01:00
Matt Westcott
e2040e8842 fix documentation syntax errors / warnings 2014-07-04 21:57:58 +01:00
Matt Westcott
466df9ffd6 Add developer docs for private pages 2014-07-04 20:56:34 +01:00
Matt Westcott
383ce75b39 Document the before_serve_page hook 2014-07-04 20:56:34 +01:00
Matt Westcott
4fde40df92 Update example in static_site_generation docs to use new-style route API 2014-07-04 18:24:01 +01:00
Matt Westcott
06c79d4866 update building_your_site and model_recipes docs to cover the new route/serve API 2014-07-04 17:50:26 +01:00
Dave Cranwell
936c104187 ajax form fixed 2014-07-04 17:15:53 +01:00
Dave Cranwell
1122387626 ongoing styling of multi-upload 2014-07-04 17:07:35 +01:00
Matt Westcott
e23975eb93 move Page.check_view_restrictions back into the body of the check_view_restrictions hook - it's view-level functionality, not model level, and its presence in the Page model is confusing (and the reason it was there has now been superseded). See https://groups.google.com/d/msg/wagtail/085Z7Mp73gE/dqfxW0sC72IJ 2014-07-04 16:56:14 +01:00
Karl Hobley
7d4f4c2edd Don't include protected pages in sitemap. Fixes #407 2014-07-04 16:34:50 +01:00
Karl Hobley
7c434f652a Tweaked reordering test to use InlinePanel children rather than its formset 2014-07-04 16:24:21 +01:00
Karl Hobley
eebb0ce711 Fixed a few errors in edit handlers tests 2014-07-04 16:23:34 +01:00
Karl Hobley
41f2ff7a03 Merge remote-tracking branch 'nimasmi/DOM_formset_reordering' into issue/222 2014-07-04 16:16:35 +01:00
Karl Hobley
6d82826efe Added failing test for #222 2014-07-04 16:14:59 +01:00
Karl Hobley
bfa04dfd24 Added assertRegex to WagtailTestUtils 2014-07-04 16:14:42 +01:00
Karl Hobley
5cead3c40a Added public and not_public filters to PageQuerySet 2014-07-04 15:43:18 +01:00
Dave Cranwell
3dc1b51a0e Merge branch 'master' into feature/multi-image-upload 2014-07-04 15:35:00 +01:00
Karl Hobley
e0a1872921 Added tests for FEP backend views 2014-07-04 15:32:30 +01:00
Matt Westcott
c4216a0363 syntactic tweak 2014-07-04 15:32:30 +01:00
Dave Cranwell
1c47560c02 tweaking size of privacy indicator 2014-07-04 15:32:29 +01:00
Dave Cranwell
dffd441375 adding privacy setter into page listing. previously omitted by error. Also fixing breadcrumbs within page chooser, broken for a while. 2014-07-04 15:32:29 +01:00
Matt Westcott
00942c9de7 add unit tests for user-facing front-end-permission views 2014-07-04 15:32:29 +01:00
Matt Westcott
4c35928092 add test fixtures for front-end permission testing 2014-07-04 15:32:29 +01:00
Matt Westcott
812bd990e1 remove stray angle bracket 2014-07-04 15:32:29 +01:00
Matt Westcott
37f6ea97b1 Appending to the passed_page_view_restrictions list doesn't write it back to the session - need to explicitly write it back to the session dict 2014-07-04 15:32:29 +01:00
Matt Westcott
37519daf7e return a RouteResult object back from route() rather than a Page, making it possible to transfer params between route() and serve() 2014-07-04 15:32:29 +01:00
Dave Cranwell
ff33a00deb 'view restrictions' renamed 'privacy' and general wagtail styling of privacy status completed 2014-07-04 15:32:29 +01:00
Matt Westcott
9e94c83843 Add 'private' indicator in page chooser for pages with view restrictions 2014-07-04 15:32:29 +01:00
Matt Westcott
1ee707f405 Add note that access restrictions will take effect on child pages 2014-07-04 15:32:28 +01:00
Matt Westcott
9f460bff05 move check_view_restrictions into the Page model, so that sites with non-standard routing requirements can use it independently of the before_serve_page hook 2014-07-04 15:32:28 +01:00
Matt Westcott
47c0a197c8 make password a required field when restriction_type = password 2014-07-04 15:32:28 +01:00
Matt Westcott
0fbd3e7e14 make view permission indicator update dynamically after permissions are set 2014-07-04 15:32:28 +01:00
Matt Westcott
1c313652eb implement form for setting access restrictions 2014-07-04 15:32:28 +01:00
Matt Westcott
eaee2b9695 Implement (mostly-empty) views for setting view restrictions, accessible from the permission indicator 2014-07-04 15:32:28 +01:00
Matt Westcott
cae0d8fecb add public/private indicator on explorer and page editor 2014-07-04 15:32:28 +01:00
Matt Westcott
1e71e10cd2 Keep track of passed page view restrictions in the session 2014-07-04 15:32:28 +01:00
Matt Westcott
e4008a8148 implement form submission logic for the password form 2014-07-04 15:32:28 +01:00
Matt Westcott
d0e93f997f Delegate serving of the 'password required' response to the Page model 2014-07-04 15:32:28 +01:00
Matt Westcott
6f855d7fd8 simplified get_ancestors logic 2014-07-04 15:32:27 +01:00
Matt Westcott
4af5f3d24d Add PageViewRestriction model, and apply permission check in the 'serve' view 2014-07-04 15:32:27 +01:00
Matt Westcott
df15ece5dc Implement before_serve_page hook 2014-07-04 14:44:42 +01:00
Matt Westcott
9cc3614097 Catch the deprecation warning for old-style routes during unit tests 2014-07-04 14:40:29 +01:00
Matt Westcott
6e32b6cf9b Update Page.route API so that it returns a Page instance rather than an HttpResponse; catch the latter in the 'serve' view for backward compatibility 2014-07-04 14:21:32 +01:00