From feaee24cd04f924379e51ed0e855af45a60d862f Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Wed, 7 Dec 2016 22:22:01 +0000 Subject: [PATCH] Relicense to LGPL With the agreement of authors and contributors. Closes #635 (https://github.com/OCA/server-tools/issues/635) --- base_external_dbsource/README.rst | 6 ++--- base_external_dbsource/__init__.py | 20 ----------------- base_external_dbsource/__manifest__.py | 2 +- base_external_dbsource/models/__init__.py | 20 ----------------- .../models/base_external_dbsource.py | 22 +++---------------- 5 files changed, 7 insertions(+), 63 deletions(-) diff --git a/base_external_dbsource/README.rst b/base_external_dbsource/README.rst index a916f045b..185b1a136 100644 --- a/base_external_dbsource/README.rst +++ b/base_external_dbsource/README.rst @@ -1,6 +1,6 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 ========================= External Database Sources diff --git a/base_external_dbsource/__init__.py b/base_external_dbsource/__init__.py index ea2f55388..a0fdc10fe 100644 --- a/base_external_dbsource/__init__.py +++ b/base_external_dbsource/__init__.py @@ -1,22 +1,2 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Daniel Reis -# 2011 -# -# 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, 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 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 . -# -############################################################################## - from . import models diff --git a/base_external_dbsource/__manifest__.py b/base_external_dbsource/__manifest__.py index 3ef362432..5c58a46e1 100644 --- a/base_external_dbsource/__manifest__.py +++ b/base_external_dbsource/__manifest__.py @@ -8,7 +8,7 @@ 'category': 'Tools', 'author': "Daniel Reis,Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/server-tools', - 'license': 'AGPL-3', + 'license': 'LGPL-3', 'images': [ 'images/screenshot01.png', ], diff --git a/base_external_dbsource/models/__init__.py b/base_external_dbsource/models/__init__.py index 76ae45df6..68c065d31 100644 --- a/base_external_dbsource/models/__init__.py +++ b/base_external_dbsource/models/__init__.py @@ -1,22 +1,2 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Daniel Reis -# 2011 -# -# 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, 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 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 . -# -############################################################################## - from . import base_external_dbsource diff --git a/base_external_dbsource/models/base_external_dbsource.py b/base_external_dbsource/models/base_external_dbsource.py index 79a581689..d8c1c0e8f 100644 --- a/base_external_dbsource/models/base_external_dbsource.py +++ b/base_external_dbsource/models/base_external_dbsource.py @@ -1,27 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Daniel Reis -# 2011 -# -# 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, 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 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 . -# -############################################################################## +# Copyright 2011 Daniel Reis +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import os import logging import psycopg2 + from odoo import models, fields, api, _ from odoo.exceptions import Warning as UserError import odoo.tools as tools