Wrap toggle annotation lines with multiline comments

This takes advantage of the new multiline annotation format with
single-line comment prefix, from code-annotations.
This commit is contained in:
Régis Behmo
2020-08-27 16:36:12 +02:00
parent d34aa1c643
commit 7dc460d50a
13 changed files with 181 additions and 136 deletions

View File

@@ -8,19 +8,17 @@ from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag, WaffleFlag, W
COURSE_BLOCKS_API_NAMESPACE = WaffleFlagNamespace(name=u'course_blocks_api')
"""
.. toggle_name: course_blocks_api.hide_access_denials
.. toggle_implementation: WaffleFlag
.. toggle_default: False
.. toggle_description: Waffle flag to hide access denial messages in the course blocks.
.. toggle_category: course api
.. toggle_use_cases: incremental_release, open_edx
.. toggle_creation_date: ??
.. toggle_expiration_date: None
.. toggle_warnings: None
.. toggle_tickets: ??
.. toggle_status: supported
"""
# .. toggle_name: course_blocks_api.hide_access_denials
# .. toggle_implementation: WaffleFlag
# .. toggle_default: False
# .. toggle_description: Waffle flag to hide access denial messages in the course blocks.
# .. toggle_category: course api
# .. toggle_use_cases: incremental_release, open_edx
# .. toggle_creation_date: ??
# .. toggle_expiration_date: None
# .. toggle_warnings: None
# .. toggle_tickets: ??
# .. toggle_status: supported
HIDE_ACCESS_DENIALS_FLAG = WaffleFlag(
waffle_namespace=COURSE_BLOCKS_API_NAMESPACE,
flag_name=u'hide_access_denials',