Skip to content

Commit

Permalink
Merge pull request #2488 from camptocamp/should-be-public
Browse files Browse the repository at this point in the history
Attributes additional_* should be public
  • Loading branch information
sbrunner authored Oct 26, 2024
2 parents e6cb535 + 9dc04d9 commit ff14f24
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions c2cwsgiutils/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

_LOG = logging.getLogger(__name__)

_additional_title: Optional[str] = None
_additional_noauth: list[str] = []
_additional_auth: list[str] = []
additional_title: Optional[str] = None
additional_noauth: list[str] = []
additional_auth: list[str] = []
_ELEM_ID = 0


Expand Down Expand Up @@ -159,15 +159,15 @@ def _index(request: pyramid.request.Request) -> dict[str, str]:
body += _logging(request)
body += _profiler(request)

if _additional_title is not None and (has_access or _additional_noauth):
body += _additional_title
if additional_title is not None and (has_access or additional_noauth):
body += additional_title
body += "\n"

if has_access:
body += "\n".join(_additional_auth)
body += "\n".join(additional_auth)
body += "\n"

body += "\n".join(_additional_noauth)
body += "\n".join(additional_noauth)

settings = request.registry.settings
auth_type_ = auth_type(settings)
Expand Down

0 comments on commit ff14f24

Please sign in to comment.