Wykres commitów

1842 Commity (2b9249907bbef3a63474d25d73cc5827e2299e6e)

Autor SHA1 Wiadomość Data
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
Matt Westcott 2def3b3859 Merge branch 'kaedroho-issue/408' 2014-07-04 11:54:53 +01:00
Matt Westcott 85976d2a58 Merge branch 'issue/408' of https://github.com/kaedroho/wagtail into kaedroho-issue/408 2014-07-04 11:45:43 +01:00
Karl Hobley 56647908d0 Improved test_post_reorder test 2014-07-04 11:39:42 +01:00
Karl Hobley c7ec5792f6 Make sure all editors picks are resaved on edit. Fixes #408
As we are setting the sort_order manually. The formset doesn't think the editors pick has changed so doesn't save it.
This caused a SQLite test to fail as NULL is always greater than any integer causing ordering to be incorrect.
2014-07-04 11:34:13 +01:00
Karl Hobley fe3c2e6c0b Added __repr__ to EditorsPicK 2014-07-04 11:33:34 +01:00
Karl Hobley 7fc10398dd Minor optimisation when building single field queries 2014-07-04 10:31:50 +01:00
Karl Hobley dcca9bd515 Use a multi_match query instead of a query_string query 2014-07-04 10:24:32 +01:00
Karl Hobley 14228a56e1 Merge pull request #419 from gasman/serve_preview
Use serve_preview() rather than serve() for all preview / moderation / view_draft actions
2014-07-03 17:22:22 +01:00
Matt Westcott c0d2a70d6d output a DeprecationWarning if get_page_modes has been overridden 2014-07-03 16:46:10 +01:00
Matt Westcott 26cacbc95a Merge pull request #417 from kaedroho/wagtailcore-cleanup-3
Cleanup a few methods of UserPagePermissionsProxy
2014-07-03 16:06:09 +01:00
Matt Westcott a1bf11113a update view_draft and preview_for_moderation to call serve_preview (rather than serve, which for some page models might require additional args/kwargs) 2014-07-03 15:51:24 +01:00
Matt Westcott 493fc29c08 Deprecate the `show_as_mode` method in favour of `serve_preview` which additionally takes a 'request' argument 2014-07-03 15:31:27 +01:00
Karl Hobley 78abe31b05 Cleanup a few methods of UserPagePermissionsProxy 2014-07-03 15:15:12 +01:00
Matt Westcott 0a38e0b8d3 rename display_modes to preview_modes for consistency
Conflicts:
	wagtail/wagtailadmin/views/pages.py
2014-07-03 15:03:38 +01:00
Matt Westcott 78481dc846 syntactic sugar for get_page_modes: change it to a property called preview_modes and add a default_preview_mode helper
Conflicts:
	wagtail/wagtailadmin/views/pages.py
2014-07-03 15:01:35 +01:00
Matt Westcott dd52ccab2a Remove X-Requested-With header hacks on the incoming requests to preview_on_edit and preview_on_create - no longer necessary, because we're not passing that request to the preview logic
Conflicts:
	wagtail/wagtailadmin/views/pages.py
2014-07-03 14:59:34 +01:00
Karl Hobley 91687d923e Merge pull request #363 from mope/fix-edit-handlers-test
Tidy up unit tests
2014-07-03 14:31:46 +01:00
Karl Hobley 532bb6241e Added some more FilterFields to Page 2014-07-03 14:26:05 +01:00
Tom Talbot c0cb1b6280 Remove mock expected calls from edit handler tests
'Expected calls' works differently in Python 2 and 3
2014-07-03 14:11:29 +01:00
Karl Hobley 148fcf04e3 Merge pull request #414 from kaedroho/frontendcache-purge-url
Allow purging individual URLs from frontend cache
2014-07-03 13:59:13 +01:00
Tom Talbot 69077927f9 Fix FieldPanel test failures 2014-07-03 13:56:43 +01:00
Karl Hobley 735cfe3767 Use UTC timezone in tests
This prevents Django from converting times in tests
2014-07-03 13:44:11 +01:00
Tom Talbot 521f5924f6 Merge branch 'master' into fix-edit-handlers-test 2014-07-03 13:41:05 +01:00
Karl Hobley c9385ca1ce frontend cache purge docs change 2014-07-03 13:10:03 +01:00
Karl Hobley 3dc83a961f Updated changelog 2014-07-03 13:07:18 +01:00
Karl Hobley 25e9249308 Added a couple of missing python version classifiers 2014-07-03 13:06:32 +01:00