Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes additional_* should be public #2488

Merged
merged 1 commit into from
Oct 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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