From f222a956c9ef1b5851af9b9efac5c16c14ac9691 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sun, 9 Jun 2024 14:42:07 +0300 Subject: [PATCH] Relicense this package under AGPLv3+ this is GNU Affero General Public License v3 or later! There are 9 total contributors in this code base, listed by number of contributions: - atodorov (340 commits) - pyup-bot (60 commits) - kiwitcms-bot (26 commits) - dependabot-preview[bot] (11 commits) - pre-commit-ci[bot] (8 commits) - dependabot[bot] (4 commits) - schwarzkrieger (3 commits) <--- GAVE ME EXPLICIT PERMISSION - snyk-bot (1 commit) - lgtm-migrator (1 commit) This is myself + several automated services which I have enabled on this repository + explicit agreement from @schwarzkrieger (Ivajlo Karabojkov) to relicense under AGPLv3+! --- LICENSE | 147 ++++++++---------- Makefile | 6 + manage.py | 6 + setup.py | 13 +- tcms_settings_dir/multi_tenant.py | 7 +- tcms_tenants/admin.py | 8 +- tcms_tenants/apps.py | 5 + tcms_tenants/backends.py | 5 +- tcms_tenants/checks.py | 8 +- tcms_tenants/context_processors.py | 6 + tcms_tenants/forms.py | 6 +- .../management/commands/initialize_tenants.py | 7 +- tcms_tenants/menu.py | 7 +- tcms_tenants/middleware.py | 6 +- tcms_tenants/migrations/0001_initial.py | 7 +- tcms_tenants/migrations/0002_tenant_owner.py | 5 +- .../migrations/0003_use_datetime_fields.py | 5 +- .../migrations/0004_tenant_organization.py | 5 +- .../0005_rename_on_trial_to_public_read.py | 5 + .../migrations/0006_tenant_extra_emails.py | 5 +- tcms_tenants/models.py | 7 +- tcms_tenants/oss_utils.py | 7 +- tcms_tenants/storage.py | 7 +- .../templates/tcms_tenants/invite_users.html | 8 + tcms_tenants/templates/tcms_tenants/new.html | 9 ++ .../templates/tcms_tenants/tenant_name.html | 8 + tcms_tenants/templatetags/tcms_tenants.py | 7 +- tcms_tenants/tests/test_admin.py | 6 +- tcms_tenants/tests/test_backends.py | 6 +- tcms_tenants/tests/test_checks.py | 6 + tcms_tenants/tests/test_middleware.py | 6 +- .../tests/test_personalization_display.py | 6 +- tcms_tenants/tests/test_plugin_setup.py | 6 +- tcms_tenants/tests/test_publicly_readable.py | 6 +- tcms_tenants/tests/test_storage.py | 6 +- tcms_tenants/tests/test_utils.py | 6 +- tcms_tenants/tests/test_views.py | 6 +- tcms_tenants/urls.py | 7 +- tcms_tenants/utils.py | 7 +- tcms_tenants/views.py | 7 +- tenant_groups/admin.py | 7 +- tenant_groups/apps.py | 5 + tenant_groups/backends.py | 5 +- tenant_groups/checks.py | 5 +- .../commands/refresh_tenant_permissions.py | 5 +- tenant_groups/migrations/0001_initial.py | 5 +- tenant_groups/models.py | 7 +- tenant_groups/tests/test_admin.py | 5 + tenant_groups/tests/test_checks.py | 5 +- .../tests/test_moderator_only_permissions.py | 5 + tenant_groups/tests/test_owner_permissions.py | 5 + .../tests/test_per_object_permissions.py | 5 + .../tests/test_regular_user_permissions.py | 5 + .../test_user_perms_supersede_group_perms.py | 5 + .../tests/test_view_only_permissions.py | 5 + test_project/settings.py | 8 +- .../commands/execute_integration_tests.py | 7 +- 57 files changed, 324 insertions(+), 173 deletions(-) diff --git a/LICENSE b/LICENSE index f288702d..be3f7b28 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -7,17 +7,15 @@ Preamble - The GNU General Public License is a free, copyleft license for -software and other kinds of works. + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to +our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. +software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. The precise terms and conditions for copying, distribution and modification follow. @@ -72,7 +60,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU General Public License. + "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single +under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General +Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's +versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by + it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 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 General Public License for more details. + GNU Affero General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see +For more information on this, and how to apply and follow the GNU AGPL, see . - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/Makefile b/Makefile index 24ea808f..391c8ed0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +# Copyright (c) 2019-2022 Alexander Todorov +# Copyright (c) 2021 Ivajlo Karabojkov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + KIWI_INCLUDE_PATH="../Kiwi/" .PHONY: messages diff --git a/manage.py b/manage.py index 92374dc3..4896443e 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,10 @@ #!/usr/bin/env python + +# Copyright (c) 2019-2020 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=missing-docstring import os diff --git a/setup.py b/setup.py index 719650ea..c0ff8340 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ -# pylint: disable=missing-docstring - -# Copyright (c) 2019-2023 Alexander Todorov +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# pylint: disable=missing-docstring from setuptools import setup, find_packages @@ -31,7 +32,7 @@ def get_install_requires(path): author="Kiwi TCMS", author_email="info@kiwitcms.org", url="https://github.com/kiwitcms/tenants/", - license="GPLv3+", + license="AGPLv3+", install_requires=get_install_requires("requirements.txt"), include_package_data=True, packages=find_packages(exclude=["test_project*", "*.tests"]), @@ -44,7 +45,7 @@ def get_install_requires(path): "Topic :: Software Development :: Testing", "Environment :: Web Environment", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/tcms_settings_dir/multi_tenant.py b/tcms_settings_dir/multi_tenant.py index 1bb831af..316f7824 100644 --- a/tcms_settings_dir/multi_tenant.py +++ b/tcms_settings_dir/multi_tenant.py @@ -1,6 +1,9 @@ -# Copyright (c) 2020-2021 Alexander Todorov +# Copyright (c) 2020-2024 Alexander Todorov +# Copyright (c) 2022 Ivajlo Karabojkov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=undefined-variable import os diff --git a/tcms_tenants/admin.py b/tcms_tenants/admin.py index d9e3147a..4488a459 100644 --- a/tcms_tenants/admin.py +++ b/tcms_tenants/admin.py @@ -1,7 +1,7 @@ -# Copyright (c) 2019-2024 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt - +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django import forms from django.urls import reverse diff --git a/tcms_tenants/apps.py b/tcms_tenants/apps.py index 06dd20ac..01520047 100644 --- a/tcms_tenants/apps.py +++ b/tcms_tenants/apps.py @@ -1,3 +1,8 @@ +# Copyright (c) 2021 Ivajlo Karabojkov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=import-outside-toplevel from django.apps import AppConfig as DjangoAppConfig from django.core.checks import register diff --git a/tcms_tenants/backends.py b/tcms_tenants/backends.py index 4961c1eb..8cacc7c2 100644 --- a/tcms_tenants/backends.py +++ b/tcms_tenants/backends.py @@ -1,4 +1,7 @@ -# Copyright (c) 2021 Alexander Todorov +# Copyright (c) 2021-2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.contrib.auth.backends import BaseBackend diff --git a/tcms_tenants/checks.py b/tcms_tenants/checks.py index 7ac0f761..1e9d7f05 100644 --- a/tcms_tenants/checks.py +++ b/tcms_tenants/checks.py @@ -1,7 +1,7 @@ -# Copyright (c) 2021-2022 Ivajlo Karabojkov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt - +# Copyright (c) 2021 Ivajlo Karabojkov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import os diff --git a/tcms_tenants/context_processors.py b/tcms_tenants/context_processors.py index 04ca1021..f8dcc22a 100644 --- a/tcms_tenants/context_processors.py +++ b/tcms_tenants/context_processors.py @@ -1,3 +1,9 @@ +# Copyright (c) 2022 Ivajlo Karabojkov +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + from attachments.models import Attachment from django.template.loader import render_to_string diff --git a/tcms_tenants/forms.py b/tcms_tenants/forms.py index d3338557..a2dc107b 100644 --- a/tcms_tenants/forms.py +++ b/tcms_tenants/forms.py @@ -1,6 +1,8 @@ -# Copyright (c) 2019-2024 Alexander Todorov +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt import re from django import forms diff --git a/tcms_tenants/management/commands/initialize_tenants.py b/tcms_tenants/management/commands/initialize_tenants.py index d3a3cb27..15e52d9d 100644 --- a/tcms_tenants/management/commands/initialize_tenants.py +++ b/tcms_tenants/management/commands/initialize_tenants.py @@ -1,6 +1,7 @@ -# Copyright (c) 2024 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import datetime diff --git a/tcms_tenants/menu.py b/tcms_tenants/menu.py index 06c21065..b7f9f213 100644 --- a/tcms_tenants/menu.py +++ b/tcms_tenants/menu.py @@ -1,6 +1,7 @@ -# Copyright (c) 2020 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2020-2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ diff --git a/tcms_tenants/middleware.py b/tcms_tenants/middleware.py index 06f88945..b3d02523 100644 --- a/tcms_tenants/middleware.py +++ b/tcms_tenants/middleware.py @@ -1,6 +1,8 @@ -# Copyright (c) 2019-2021 Alexander Todorov +# Copyright (c) 2019-2021 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-few-public-methods from datetime import timedelta diff --git a/tcms_tenants/migrations/0001_initial.py b/tcms_tenants/migrations/0001_initial.py index a4f279b0..bc11c5aa 100644 --- a/tcms_tenants/migrations/0001_initial.py +++ b/tcms_tenants/migrations/0001_initial.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2020 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.conf import settings from django.db import models, migrations diff --git a/tcms_tenants/migrations/0002_tenant_owner.py b/tcms_tenants/migrations/0002_tenant_owner.py index 01a981f0..2b459c31 100644 --- a/tcms_tenants/migrations/0002_tenant_owner.py +++ b/tcms_tenants/migrations/0002_tenant_owner.py @@ -1,4 +1,7 @@ -# Generated by Django 2.2 on 2019-04-28 17:38 +# Copyright (c) 2019 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.conf import settings from django.db import migrations, models diff --git a/tcms_tenants/migrations/0003_use_datetime_fields.py b/tcms_tenants/migrations/0003_use_datetime_fields.py index 96a21124..87144c2f 100644 --- a/tcms_tenants/migrations/0003_use_datetime_fields.py +++ b/tcms_tenants/migrations/0003_use_datetime_fields.py @@ -1,4 +1,7 @@ -# Generated by Django 2.2.1 on 2019-05-04 23:11 +# Copyright (c) 2019 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.db import migrations, models diff --git a/tcms_tenants/migrations/0004_tenant_organization.py b/tcms_tenants/migrations/0004_tenant_organization.py index 2f236408..9a97b806 100644 --- a/tcms_tenants/migrations/0004_tenant_organization.py +++ b/tcms_tenants/migrations/0004_tenant_organization.py @@ -1,4 +1,7 @@ -# Generated by Django 2.2.1 on 2019-05-18 16:42 +# Copyright (c) 2019 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.db import migrations, models diff --git a/tcms_tenants/migrations/0005_rename_on_trial_to_public_read.py b/tcms_tenants/migrations/0005_rename_on_trial_to_public_read.py index 7b423104..5549eaa1 100644 --- a/tcms_tenants/migrations/0005_rename_on_trial_to_public_read.py +++ b/tcms_tenants/migrations/0005_rename_on_trial_to_public_read.py @@ -1,3 +1,8 @@ +# Copyright (c) 2021 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + from django.db import migrations, models diff --git a/tcms_tenants/migrations/0006_tenant_extra_emails.py b/tcms_tenants/migrations/0006_tenant_extra_emails.py index 6f5de4be..e83eb8da 100644 --- a/tcms_tenants/migrations/0006_tenant_extra_emails.py +++ b/tcms_tenants/migrations/0006_tenant_extra_emails.py @@ -1,4 +1,7 @@ -# Generated by Django 5.0.4 on 2024-04-23 19:47 +# Copyright (c) 2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.db import migrations, models diff --git a/tcms_tenants/models.py b/tcms_tenants/models.py index abfdcb89..6425041a 100644 --- a/tcms_tenants/models.py +++ b/tcms_tenants/models.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019-2024 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import os diff --git a/tcms_tenants/oss_utils.py b/tcms_tenants/oss_utils.py index 07c8bb34..2c6e6a3d 100644 --- a/tcms_tenants/oss_utils.py +++ b/tcms_tenants/oss_utils.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019-2023 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2022-2023 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import datetime diff --git a/tcms_tenants/storage.py b/tcms_tenants/storage.py index e65e3680..45a7dd74 100644 --- a/tcms_tenants/storage.py +++ b/tcms_tenants/storage.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2020 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import os diff --git a/tcms_tenants/templates/tcms_tenants/invite_users.html b/tcms_tenants/templates/tcms_tenants/invite_users.html index 166f2ed5..eeed3bb9 100644 --- a/tcms_tenants/templates/tcms_tenants/invite_users.html +++ b/tcms_tenants/templates/tcms_tenants/invite_users.html @@ -1,4 +1,12 @@ {% extends "base.html" %} + +{% comment %} +Copyright (c) 2020-2024 Alexander Todorov + +Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +https://www.gnu.org/licenses/agpl-3.0.html +{% endcomment %} + {% load i18n %} {% load static %} diff --git a/tcms_tenants/templates/tcms_tenants/new.html b/tcms_tenants/templates/tcms_tenants/new.html index 28e4f25e..b760bb4c 100644 --- a/tcms_tenants/templates/tcms_tenants/new.html +++ b/tcms_tenants/templates/tcms_tenants/new.html @@ -1,4 +1,13 @@ {% extends "base.html" %} + +{% comment %} +Copyright (c) 2019-2023 Alexander Todorov +Copyright (c) 2022 Ivajlo Karabojkov + +Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +https://www.gnu.org/licenses/agpl-3.0.html +{% endcomment %} + {% load i18n %} {% load static %} diff --git a/tcms_tenants/templates/tcms_tenants/tenant_name.html b/tcms_tenants/templates/tcms_tenants/tenant_name.html index 725228b9..c00abd73 100644 --- a/tcms_tenants/templates/tcms_tenants/tenant_name.html +++ b/tcms_tenants/templates/tcms_tenants/tenant_name.html @@ -1,3 +1,11 @@ +{% comment %} +Copyright (c) 2022 Ivajlo Karabojkov +Copyright (c) 2022-2024 Alexander Todorov + +Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +https://www.gnu.org/licenses/agpl-3.0.html +{% endcomment %} + {% if tenant_logo %} - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django import template from django.db import connection diff --git a/tcms_tenants/tests/test_admin.py b/tcms_tenants/tests/test_admin.py index 5ce79788..f570dab1 100644 --- a/tcms_tenants/tests/test_admin.py +++ b/tcms_tenants/tests/test_admin.py @@ -1,6 +1,8 @@ -# Copyright (c) 2020-2024 Alexander Todorov +# Copyright (c) 2020-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from http import HTTPStatus diff --git a/tcms_tenants/tests/test_backends.py b/tcms_tenants/tests/test_backends.py index 69d6f8c7..eb07515f 100644 --- a/tcms_tenants/tests/test_backends.py +++ b/tcms_tenants/tests/test_backends.py @@ -1,6 +1,8 @@ -# Copyright (c) 2022 Alexander Todorov +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from http import HTTPStatus diff --git a/tcms_tenants/tests/test_checks.py b/tcms_tenants/tests/test_checks.py index 57e8f47b..69a23676 100644 --- a/tcms_tenants/tests/test_checks.py +++ b/tcms_tenants/tests/test_checks.py @@ -1,3 +1,9 @@ +# Copyright (c) 2021 Ivajlo Karabojkov +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + import os from unittest.mock import patch diff --git a/tcms_tenants/tests/test_middleware.py b/tcms_tenants/tests/test_middleware.py index 08a858e0..af2e41af 100644 --- a/tcms_tenants/tests/test_middleware.py +++ b/tcms_tenants/tests/test_middleware.py @@ -1,6 +1,8 @@ -# Copyright (c) 2019-2022 Alexander Todorov +# Copyright (c) 2019-2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from datetime import timedelta diff --git a/tcms_tenants/tests/test_personalization_display.py b/tcms_tenants/tests/test_personalization_display.py index 61d419ea..3f3ec4ea 100644 --- a/tcms_tenants/tests/test_personalization_display.py +++ b/tcms_tenants/tests/test_personalization_display.py @@ -1,6 +1,8 @@ -# Copyright (c) 2022 Alexander Todorov +# Copyright (c) 2022-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from django.urls import reverse diff --git a/tcms_tenants/tests/test_plugin_setup.py b/tcms_tenants/tests/test_plugin_setup.py index e315d636..61e3585d 100644 --- a/tcms_tenants/tests/test_plugin_setup.py +++ b/tcms_tenants/tests/test_plugin_setup.py @@ -1,6 +1,8 @@ -# Copyright (c) 2020-2021 Alexander Todorov +# Copyright (c) 2020-2021 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from django.conf import settings diff --git a/tcms_tenants/tests/test_publicly_readable.py b/tcms_tenants/tests/test_publicly_readable.py index 928c818d..0cce6106 100644 --- a/tcms_tenants/tests/test_publicly_readable.py +++ b/tcms_tenants/tests/test_publicly_readable.py @@ -1,6 +1,8 @@ -# Copyright (c) 2021-2022 Alexander Todorov +# Copyright (c) 2021-2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from django.contrib.auth.models import Group, Permission diff --git a/tcms_tenants/tests/test_storage.py b/tcms_tenants/tests/test_storage.py index 6ea0305b..64b9d777 100644 --- a/tcms_tenants/tests/test_storage.py +++ b/tcms_tenants/tests/test_storage.py @@ -1,6 +1,8 @@ -# Copyright (c) 2019-2021 Alexander Todorov +# Copyright (c) 2019-2021 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from django.db import connection from django.core.files.base import ContentFile diff --git a/tcms_tenants/tests/test_utils.py b/tcms_tenants/tests/test_utils.py index 837354cc..3c8354e4 100644 --- a/tcms_tenants/tests/test_utils.py +++ b/tcms_tenants/tests/test_utils.py @@ -1,6 +1,8 @@ -# Copyright (c) 2021-2024 Alexander Todorov +# Copyright (c) 2021-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from django.test import override_settings diff --git a/tcms_tenants/tests/test_views.py b/tcms_tenants/tests/test_views.py index 1a29df04..9be4307e 100644 --- a/tcms_tenants/tests/test_views.py +++ b/tcms_tenants/tests/test_views.py @@ -1,6 +1,8 @@ -# Copyright (c) 2019-2024 Alexander Todorov +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt # pylint: disable=too-many-ancestors from datetime import timedelta from mock import patch diff --git a/tcms_tenants/urls.py b/tcms_tenants/urls.py index 01913937..4e709010 100644 --- a/tcms_tenants/urls.py +++ b/tcms_tenants/urls.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019-2021 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2021 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.urls import re_path from tcms_tenants import views diff --git a/tcms_tenants/utils.py b/tcms_tenants/utils.py index b281cfa1..645c42cf 100644 --- a/tcms_tenants/utils.py +++ b/tcms_tenants/utils.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019-2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import datetime import uuid diff --git a/tcms_tenants/views.py b/tcms_tenants/views.py index c2aa8c2d..c4eb2046 100644 --- a/tcms_tenants/views.py +++ b/tcms_tenants/views.py @@ -1,6 +1,7 @@ -# Copyright (c) 2019-2021 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.conf import settings from django.contrib import messages diff --git a/tenant_groups/admin.py b/tenant_groups/admin.py index d28b414b..b8411b7c 100644 --- a/tenant_groups/admin.py +++ b/tenant_groups/admin.py @@ -1,6 +1,7 @@ -# Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django import forms diff --git a/tenant_groups/apps.py b/tenant_groups/apps.py index 2f9fd22e..ace315e4 100644 --- a/tenant_groups/apps.py +++ b/tenant_groups/apps.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=import-outside-toplevel from django.apps import AppConfig as DjangoAppConfig diff --git a/tenant_groups/backends.py b/tenant_groups/backends.py index 569090c6..cf6a1d02 100644 --- a/tenant_groups/backends.py +++ b/tenant_groups/backends.py @@ -1,4 +1,7 @@ -# Copyright (c) 2022 Alexander Todorov +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.contrib.auth.backends import ModelBackend from django.contrib.auth.models import Permission diff --git a/tenant_groups/checks.py b/tenant_groups/checks.py index 2bbae8b6..c140b919 100644 --- a/tenant_groups/checks.py +++ b/tenant_groups/checks.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.conf import settings from django.core import checks diff --git a/tenant_groups/management/commands/refresh_tenant_permissions.py b/tenant_groups/management/commands/refresh_tenant_permissions.py index 2059a4d2..df465883 100644 --- a/tenant_groups/management/commands/refresh_tenant_permissions.py +++ b/tenant_groups/management/commands/refresh_tenant_permissions.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django_tenants.utils import ( get_public_schema_name, diff --git a/tenant_groups/migrations/0001_initial.py b/tenant_groups/migrations/0001_initial.py index 6e6462be..0dd9ba64 100644 --- a/tenant_groups/migrations/0001_initial.py +++ b/tenant_groups/migrations/0001_initial.py @@ -1,4 +1,7 @@ -# Generated by Django 3.2.11 on 2022-01-31 17:04 +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.conf import settings from django.db import connections diff --git a/tenant_groups/models.py b/tenant_groups/models.py index 7e9e8e25..fa9f85f2 100644 --- a/tenant_groups/models.py +++ b/tenant_groups/models.py @@ -1,6 +1,7 @@ -# Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2022-2023 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.db import models from django.conf import settings diff --git a/tenant_groups/tests/test_admin.py b/tenant_groups/tests/test_admin.py index 6db1708a..9e9b1b0b 100644 --- a/tenant_groups/tests/test_admin.py +++ b/tenant_groups/tests/test_admin.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from http import HTTPStatus diff --git a/tenant_groups/tests/test_checks.py b/tenant_groups/tests/test_checks.py index aa719ce6..04369732 100644 --- a/tenant_groups/tests/test_checks.py +++ b/tenant_groups/tests/test_checks.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html from django.core.checks import Error from django.test import override_settings, TestCase diff --git a/tenant_groups/tests/test_moderator_only_permissions.py b/tenant_groups/tests/test_moderator_only_permissions.py index 9685d7a3..0c4a7c95 100644 --- a/tenant_groups/tests/test_moderator_only_permissions.py +++ b/tenant_groups/tests/test_moderator_only_permissions.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.contrib.auth.models import Group, Permission from django.http import HttpResponseForbidden diff --git a/tenant_groups/tests/test_owner_permissions.py b/tenant_groups/tests/test_owner_permissions.py index 66820b4d..4f1f23f7 100644 --- a/tenant_groups/tests/test_owner_permissions.py +++ b/tenant_groups/tests/test_owner_permissions.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.urls import reverse diff --git a/tenant_groups/tests/test_per_object_permissions.py b/tenant_groups/tests/test_per_object_permissions.py index 40512cfe..11d6815a 100644 --- a/tenant_groups/tests/test_per_object_permissions.py +++ b/tenant_groups/tests/test_per_object_permissions.py @@ -1,3 +1,8 @@ +# Copyright (c) 2019-2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.contrib.auth.models import Group, Permission from django.http import HttpResponseForbidden diff --git a/tenant_groups/tests/test_regular_user_permissions.py b/tenant_groups/tests/test_regular_user_permissions.py index 48f48000..1d4abd8f 100644 --- a/tenant_groups/tests/test_regular_user_permissions.py +++ b/tenant_groups/tests/test_regular_user_permissions.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.urls import reverse diff --git a/tenant_groups/tests/test_user_perms_supersede_group_perms.py b/tenant_groups/tests/test_user_perms_supersede_group_perms.py index 5776225c..f5b84b7d 100644 --- a/tenant_groups/tests/test_user_perms_supersede_group_perms.py +++ b/tenant_groups/tests/test_user_perms_supersede_group_perms.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.contrib.auth.models import Group, Permission from django.http import HttpResponseForbidden diff --git a/tenant_groups/tests/test_view_only_permissions.py b/tenant_groups/tests/test_view_only_permissions.py index 9c9262a8..a8d3dc30 100644 --- a/tenant_groups/tests/test_view_only_permissions.py +++ b/tenant_groups/tests/test_view_only_permissions.py @@ -1,3 +1,8 @@ +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html + # pylint: disable=invalid-name, too-many-ancestors from django.contrib.auth.models import Group, Permission from django.http import HttpResponseForbidden diff --git a/test_project/settings.py b/test_project/settings.py index 4d3ece3a..98aa0778 100644 --- a/test_project/settings.py +++ b/test_project/settings.py @@ -1,7 +1,9 @@ -# pylint: disable=wildcard-import, unused-wildcard-import -# Copyright (c) 2019-2024 Alexander Todorov +# Copyright (c) 2019-2024 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# pylint: disable=wildcard-import, unused-wildcard-import # pylint: disable=invalid-name, protected-access, wrong-import-position import os import sys diff --git a/test_project/test_app/management/commands/execute_integration_tests.py b/test_project/test_app/management/commands/execute_integration_tests.py index a11356f9..6c8eba87 100644 --- a/test_project/test_app/management/commands/execute_integration_tests.py +++ b/test_project/test_app/management/commands/execute_integration_tests.py @@ -1,6 +1,7 @@ -# Copyright (c) 2022 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt +# Copyright (c) 2022 Alexander Todorov +# +# Licensed under GNU Affero General Public License v3 or later (AGPLv3+) +# https://www.gnu.org/licenses/agpl-3.0.html import sys import unittest