diff --git a/pagure/__init__.py b/pagure/__init__.py index 556ad13..2e91631 100644 --- a/pagure/__init__.py +++ b/pagure/__init__.py @@ -435,7 +435,7 @@ import pagure.ui.app import pagure.ui.admin import pagure.ui.fork import pagure.ui.groups -if APP.config.get('PROJECT_TICKETS', True): +if APP.config.get('ENABLE_TICKETS', True): import pagure.ui.issues import pagure.ui.plugins import pagure.ui.repo diff --git a/pagure/api/__init__.py b/pagure/api/__init__.py index 425d52e..01fd81b 100644 --- a/pagure/api/__init__.py +++ b/pagure/api/__init__.py @@ -191,7 +191,7 @@ def api_method(function): return wrapper -if pagure.APP.config.get('PROJECT_TICKETS', True): +if pagure.APP.config.get('ENABLE_TICKETS', True): from pagure.api import issue from pagure.api import fork from pagure.api import project @@ -416,7 +416,7 @@ def api(): api_projects_doc = load_doc(project.api_projects) issues = [] - if pagure.APP.config.get('PROJECT_TICKETS', True): + if pagure.APP.config.get('ENABLE_TICKETS', True): issues.append(load_doc(issue.api_new_issue)) issues.append(load_doc(issue.api_view_issues)) issues.append(load_doc(issue.api_view_issue)) @@ -434,7 +434,7 @@ def api(): api_version_doc = load_doc(api_version) api_users_doc = load_doc(api_users) api_view_user_doc = load_doc(user.api_view_user) - if pagure.APP.config.get('PROJECT_TICKETS', True): + if pagure.APP.config.get('ENABLE_TICKETS', True): api_project_tags_doc = load_doc(api_project_tags) api_groups_doc = load_doc(api_groups) api_error_codes_doc = load_doc(api_error_codes) @@ -444,7 +444,7 @@ def api(): api_error_codes_doc, ] - if pagure.APP.config.get('PROJECT_TICKETS', True): + if pagure.APP.config.get('ENABLE_TICKETS', True): extras.append(api_project_tags_doc) return flask.render_template( diff --git a/pagure/default_config.py b/pagure/default_config.py index c9d1873..38ad853 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -35,7 +35,7 @@ APP_URL = 'https://pagure.org/' # Enables / Disables tickets for project for the entire pagure instance -PROJECT_TICKETS = True +ENABLE_TICKETS = True # The URL to use to clone the git repositories. GIT_URL_SSH = 'ssh://git@pagure.org/' diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index b7cc09b..f16ee46 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -119,7 +119,7 @@ class PagureExtension(markdown.extensions.Extension): ]) md.inlinePatterns['mention'] = MentionPattern(MENTION_RE) - if pagure.APP.config.get('PROJECT_TICKETS', True): + if pagure.APP.config.get('ENABLE_TICKETS', True): md.inlinePatterns['explicit_fork_issue'] = \ ExplicitForkIssuePattern(EXPLICIT_FORK_ISSUE_RE) md.inlinePatterns['explicit_main_issue'] = \ diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 20d1793..a01cf00 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -223,7 +223,7 @@ {% endif %} - {% if config.get('PROJECT_TICKETS', True) %} + {% if config.get('ENABLE_TICKETS', True) %}