From 67715fce6f5e4d5c8b9fabbc741bcadccb80f978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 13 Jul 2016 15:33:17 +0200 Subject: [PATCH] backoffice: display message on global view when there are no formdefs (#12568) --- tests/test_backoffice_pages.py | 20 ++++++++++++++++++++ wcs/backoffice/management.py | 11 +++++++++++ 2 files changed, 31 insertions(+) diff --git a/tests/test_backoffice_pages.py b/tests/test_backoffice_pages.py index 1c3cb65..73f2ec0 100644 --- a/tests/test_backoffice_pages.py +++ b/tests/test_backoffice_pages.py @@ -1760,6 +1760,26 @@ def test_global_listing(pub): resp = resp.form.submit() assert resp.body.count('') + r += htmltext('

%s

') % _('Global View') + r += htmltext('') + r += htmltext('
') + r += htmltext('

%s

') % _( + 'This site is currently empty. It is required to first add forms.') + r += htmltext('
') + return r.getvalue() + limit = int(get_request().form.get('limit', get_publisher().get_site_option('default-page-size') or 20)) offset = int(get_request().form.get('offset', 0)) -- 2.8.1