This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2 changed files with
1 additions and
9 deletions
|
|
|
@ -260,13 +260,6 @@ class AlternateRootDirectory(OldRootDirectory):
|
|
|
|
|
def _q_traverse(self, path):
|
|
|
|
|
self.feed_substitution_parts()
|
|
|
|
|
|
|
|
|
|
# set app_label to Publik if none was specified (this is used in
|
|
|
|
|
# backoffice header top line)
|
|
|
|
|
if not get_publisher().get_site_option('app_label'):
|
|
|
|
|
if not get_publisher().site_options.has_section('options'):
|
|
|
|
|
get_publisher().site_options.add_section('options')
|
|
|
|
|
get_publisher().site_options.set('options', 'app_label', 'Publik')
|
|
|
|
|
|
|
|
|
|
response = get_response()
|
|
|
|
|
if not hasattr(response, 'filter'):
|
|
|
|
|
response.filter = {}
|
|
|
|
|
|
|
|
@ -80,6 +80,5 @@ def empty_siteoptions():
|
|
|
|
|
def test_with_superuser():
|
|
|
|
|
create_superuser()
|
|
|
|
|
app = login(get_app(pub))
|
|
|
|
|
resp = app.get('/backoffice/studio/')
|
|
|
|
|
# this makes sure the extension loaded properly
|
|
|
|
|
assert '<span id="applabel">Publik</span>' in resp.text
|
|
|
|
|
resp = app.get('/backoffice/settings/texts/aq-home-page', status=200)
|
|
|
|
|