@@ -3,14 +3,14 @@
Loading
3 3
from importlib import import_module
4 4
5 5
6 -
class RemovedInWagtail212Warning(DeprecationWarning):
6 +
class RemovedInWagtail213Warning(DeprecationWarning):
7 7
    pass
8 8
9 9
10 -
removed_in_next_version_warning = RemovedInWagtail212Warning
10 +
removed_in_next_version_warning = RemovedInWagtail213Warning
11 11
12 12
13 -
class RemovedInWagtail213Warning(PendingDeprecationWarning):
13 +
class RemovedInWagtail214Warning(PendingDeprecationWarning):
14 14
    pass
15 15
16 16

@@ -1,5 +1,4 @@
Loading
1 1
import json
2 -
import warnings
3 2
4 3
from datetime import datetime
5 4
from urllib.parse import urljoin
@@ -30,11 +29,10 @@
Loading
30 29
from wagtail.core.models import (
31 30
    Collection, CollectionViewRestriction, Locale, Page, PageLogEntry, PageViewRestriction,
32 31
    UserPagePermissionsProxy)
33 -
from wagtail.core.utils import accepts_kwarg, camelcase_to_underscore
32 +
from wagtail.core.utils import camelcase_to_underscore
34 33
from wagtail.core.utils import cautious_slugify as _cautious_slugify
35 34
from wagtail.core.utils import escape_script
36 35
from wagtail.users.utils import get_gravatar_url
37 -
from wagtail.utils.deprecation import RemovedInWagtail212Warning
38 36
39 37
40 38
register = template.Library()
@@ -442,15 +440,7 @@
Loading
442 440
443 441
    buttons = []
444 442
    for hook in button_hooks:
445 -
        if accepts_kwarg(hook, 'next_url'):
446 -
            buttons.extend(hook(page, page_perms, is_parent, next_url))
447 -
        else:
448 -
            warnings.warn(
449 -
                'register_page_listing_buttons hooks will require an additional kwarg `next_url` in a future release. '
450 -
                'Please update your hook function to accept `next_url`.',
451 -
                RemovedInWagtail212Warning
452 -
            )
453 -
            buttons.extend(hook(page, page_perms, is_parent))
443 +
        buttons.extend(hook(page, page_perms, is_parent, next_url))
454 444
455 445
    buttons.sort()
456 446

@@ -1,5 +1,3 @@
Loading
1 -
import warnings
2 -
3 1
from functools import total_ordering
4 2
5 3
from django.forms.utils import flatatt
@@ -8,8 +6,6 @@
Loading
8 6
from django.utils.html import format_html
9 7
10 8
from wagtail.core import hooks
11 -
from wagtail.core.utils import accepts_kwarg
12 -
from wagtail.utils.deprecation import RemovedInWagtail212Warning
13 9
14 10
15 11
@total_ordering
@@ -99,14 +95,7 @@
Loading
99 95
100 96
        buttons = []
101 97
        for hook in button_hooks:
102 -
            if accepts_kwarg(hook, 'next_url'):
103 -
                buttons.extend(hook(self.page, self.page_perms, self.is_parent, self.next_url))
104 -
            else:
105 -
                warnings.warn(
106 -
                    '%s hooks will require an additional kwarg `next_url` in a future release. Please update your hook function to accept `next_url`.' % self.hook_name,
107 -
                    RemovedInWagtail212Warning
108 -
                )
109 -
                buttons.extend(hook(self.page, self.page_perms, self.is_parent))
98 +
            buttons.extend(hook(self.page, self.page_perms, self.is_parent, self.next_url))
110 99
111 100
        buttons.sort()
112 101
        return buttons
Files Coverage
client/src 90.97%
wagtail 90.04%
Project Totals (438 files) 90.08%
15805.10
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31stable-postgres-noelasticsearch
backend
15805.9
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch-notz
backend
15805.14
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj22-postgres-elasticsearch6
backend
15805.11
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-djmaster-postgres-noelasticsearch
backend
15805.16
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj30-postgres-elasticsearch7
backend
15805.13
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-postgres-elasticsearch5
backend
15805.17
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-elasticsearch7
backend
15805.15
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj22-postgres-elasticsearch7
backend
15805.18
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-elasticsearch7-emailuser
backend
15805.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-mysql-noelasticsearch
backend
15805.3
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj22-sqlite-noelasticsearch
backend
15805.2
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-postgres-noelasticsearch
backend
15805.5
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj30-mysql-noelasticsearch
backend
15805.4
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj30-sqlite-noelasticsearch
backend
15805.7
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch
backend
15805.6
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj30-postgres-noelasticsearch
backend
15805.12
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-sqlite-elasticsearch2
backend
15805.8
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch-emailuser
backend
1
codecov:
2
  notify:
3
    after_n_builds: 10
4
    require_ci_to_pass: no
5

6
coverage:
7
  status:
8
    project: off
9
    patch: off
10

11
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.