Révision fd36f89b
Ajouté par Frédéric Péters il y a plus d'un an
auquotidien/modules/root.py | ||
---|---|---|
260 | 260 |
def _q_traverse(self, path): |
261 | 261 |
self.feed_substitution_parts() |
262 | 262 |
|
263 |
# set app_label to Publik if none was specified (this is used in |
|
264 |
# backoffice header top line) |
|
265 |
if not get_publisher().get_site_option('app_label'): |
|
266 |
if not get_publisher().site_options.has_section('options'): |
|
267 |
get_publisher().site_options.add_section('options') |
|
268 |
get_publisher().site_options.set('options', 'app_label', 'Publik') |
|
269 |
|
|
270 | 263 |
response = get_response() |
271 | 264 |
if not hasattr(response, 'filter'): |
272 | 265 |
response.filter = {} |
tests/test_admin_pages.py | ||
---|---|---|
80 | 80 |
def test_with_superuser(): |
81 | 81 |
create_superuser() |
82 | 82 |
app = login(get_app(pub)) |
83 |
resp = app.get('/backoffice/studio/') |
|
84 | 83 |
# this makes sure the extension loaded properly |
85 |
assert '<span id="applabel">Publik</span>' in resp.text |
|
84 |
resp = app.get('/backoffice/settings/texts/aq-home-page', status=200) |
Formats disponibles : Unified diff
trivial: remove code to set "publik" as app label (now the default) (#72000)