From a924d0a266fc8381cb60237f1d7ca2aeed36f848 Mon Sep 17 00:00:00 2001 From: rash Date: Tue, 17 Mar 2026 14:17:15 +0100 Subject: [PATCH] add license headers --- .../base/management/commands/runserver.py | 23 ++++++++++++++++-- src/pretix/base/templatetags/vite.py | 24 +++++++++++++++++-- src/tests/e2e/conftest.py | 21 ++++++++++++++++ src/tests/e2e/test_widget_button.py | 21 ++++++++++++++++ src/tests/e2e/test_widget_journey_series.py | 21 ++++++++++++++++ src/tests/e2e/test_widget_journey_single.py | 21 ++++++++++++++++ 6 files changed, 127 insertions(+), 4 deletions(-) diff --git a/src/pretix/base/management/commands/runserver.py b/src/pretix/base/management/commands/runserver.py index 7079daf6eb..b29f24fa10 100644 --- a/src/pretix/base/management/commands/runserver.py +++ b/src/pretix/base/management/commands/runserver.py @@ -1,5 +1,24 @@ -# SPDX-FileCopyrightText: 2023-present Tobias Kunze -# SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# """This command supersedes the Django-inbuilt runserver command. diff --git a/src/pretix/base/templatetags/vite.py b/src/pretix/base/templatetags/vite.py index 18cbff1ef3..73fac7c422 100644 --- a/src/pretix/base/templatetags/vite.py +++ b/src/pretix/base/templatetags/vite.py @@ -1,5 +1,24 @@ -# SPDX-FileCopyrightText: 2022-present Tobias Kunze -# SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# import json import logging @@ -12,6 +31,7 @@ from django.utils.safestring import mark_safe register = template.Library() LOGGER = logging.getLogger(__name__) _MANIFEST = {} +# TODO more os.path.join ? MANIFEST_PATH = settings.STATIC_ROOT + "/vite/control/.vite/manifest.json" MANIFEST_BASE = "vite/control/" diff --git a/src/tests/e2e/conftest.py b/src/tests/e2e/conftest.py index 4606c98b19..d09a151cc3 100644 --- a/src/tests/e2e/conftest.py +++ b/src/tests/e2e/conftest.py @@ -1,3 +1,24 @@ +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# """ E2E Test Configuration for Pretix Widget with Playwright diff --git a/src/tests/e2e/test_widget_button.py b/src/tests/e2e/test_widget_button.py index e3de0bb411..a4465c90c9 100644 --- a/src/tests/e2e/test_widget_button.py +++ b/src/tests/e2e/test_widget_button.py @@ -1,3 +1,24 @@ +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# import pytest from playwright.sync_api import Page, expect diff --git a/src/tests/e2e/test_widget_journey_series.py b/src/tests/e2e/test_widget_journey_series.py index 1f8fa9490c..e3f460622b 100644 --- a/src/tests/e2e/test_widget_journey_series.py +++ b/src/tests/e2e/test_widget_journey_series.py @@ -1,3 +1,24 @@ +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# import pytest from playwright.sync_api import Page, expect diff --git a/src/tests/e2e/test_widget_journey_single.py b/src/tests/e2e/test_widget_journey_single.py index 99ab57634a..c7692aa2f1 100644 --- a/src/tests/e2e/test_widget_journey_single.py +++ b/src/tests/e2e/test_widget_journey_single.py @@ -1,3 +1,24 @@ +# +# This file is part of pretix (Community Edition). +# +# Copyright (C) 2014-2020 Raphael Michel and contributors +# Copyright (C) 2020-today pretix GmbH and contributors +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General +# Public License as published by the Free Software Foundation in version 3 of the License. +# +# ADDITIONAL TERMS APPLY: Pursuant to Section 7 of the GNU Affero General Public License, additional terms are +# applicable granting you additional permissions and placing additional restrictions on your usage of this software. +# Please refer to the pretix LICENSE file to obtain the full terms applicable to this work. If you did not receive +# this file, see . +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along with this program. If not, see +# . +# import pytest from playwright.sync_api import Page, expect