Skip to content

Commit

Permalink
Clean old legacy_template config
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Jan 17, 2022
1 parent 50da8b9 commit a7c1ed9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions ckan/config/config_declaration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ groups:
default: /base/css/main.css
- key: ckan.favicon
default: /base/images/ckan.ico
- key: ckan.legacy_templates
ignored: true
type: bool
- key: ckan.datasets_per_page
type: int
default: 20
Expand Down
1 change: 0 additions & 1 deletion ckan/lib/app_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
# bool
'debug': {'default': 'false', 'type' : 'bool'},
'ckan.debug_supress_header' : {'default': 'false', 'type' : 'bool'},
'ckan.legacy_templates' : {'default': 'false', 'type' : 'bool'},
'ckan.tracking_enabled' : {'default': 'false', 'type' : 'bool'},

# int
Expand Down
1 change: 0 additions & 1 deletion ckan/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def test_dataset_search(self, app):
Unit tests shouldn't need this.
"""
config["ckan.legacy_templates"] = False
config["testing"] = True
app = ckan.config.middleware.make_app(config)
app = CKANTestApp(app)
Expand Down
2 changes: 0 additions & 2 deletions ckanext/reclineview/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ckan.tests import helpers, factories


@pytest.mark.ckan_config('ckan.legacy_templates', 'false')
@pytest.mark.usefixtures("with_plugins", "with_request_context")
class BaseTestReclineViewBase(object):

Expand Down Expand Up @@ -69,7 +68,6 @@ def test_can_view_bad_format_no_datastore(self):
assert not self.p.can_view(data_dict)


@pytest.mark.ckan_config('ckan.legacy_templates', 'false')
@pytest.mark.ckan_config('ckan.plugins', 'recline_view datastore')
@pytest.mark.ckan_config('ckan.views.default_views', 'recline_view')
@pytest.mark.usefixtures("clean_db", "with_plugins")
Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/string-i18n.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ the quality of CKAN's translations:
* Try not to make translators translate strings that don't need to be
translated.
For example, ``'legacy_templates'`` is the name of a directory, it doesn't
For example, ``'templates'`` is the name of a directory, it doesn't
need to be marked for translation.
* Mark singular and plural forms of strings correctly.
Expand Down

0 comments on commit a7c1ed9

Please sign in to comment.