From 6addbd935f0e28b2540ef245aea503bcb218b631 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 29 Aug 2021 16:51:56 +1000 Subject: [PATCH] Add copyright boilerplate to BCF and OpenCDE code --- src/bcf/src/bcf/__init__.py | 17 +++++++++++++++++ src/bcf/src/bcf/bcfxml.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v2/__init__.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v2/bcfxml.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v2/data.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v3/__init__.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v3/bcfapi.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v3/bcfxml.py | 19 +++++++++++++++++++ src/bcf/src/bcf/v3/data.py | 19 +++++++++++++++++++ src/opencdeserver/opencdeserver/bcf/routes.py | 19 +++++++++++++++++++ .../opencdeserver/bcf/templates/base.html | 19 +++++++++++++++++++ .../opencdeserver/foundation/forms.py | 19 +++++++++++++++++++ .../opencdeserver/foundation/models.py | 19 +++++++++++++++++++ .../opencdeserver/foundation/oauth2.py | 19 +++++++++++++++++++ .../opencdeserver/foundation/routes.py | 19 +++++++++++++++++++ .../foundation/templates/base.html | 19 +++++++++++++++++++ .../foundation/templates/clientdata.html | 19 +++++++++++++++++++ .../foundation/templates/createclient.html | 19 +++++++++++++++++++ .../foundation/templates/index.html | 19 +++++++++++++++++++ .../foundation/templates/login.html | 19 +++++++++++++++++++ .../foundation/templates/oauth.html | 19 +++++++++++++++++++ .../foundation/templates/ologin.html | 19 +++++++++++++++++++ .../foundation/templates/register.html | 19 +++++++++++++++++++ src/opencdeserver/opencdeserver/run.py | 19 +++++++++++++++++++ 24 files changed, 454 insertions(+) diff --git a/src/bcf/src/bcf/__init__.py b/src/bcf/src/bcf/__init__.py index e69de29bb2..a91684cdf7 100644 --- a/src/bcf/src/bcf/__init__.py +++ b/src/bcf/src/bcf/__init__.py @@ -0,0 +1,17 @@ +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . diff --git a/src/bcf/src/bcf/bcfxml.py b/src/bcf/src/bcf/bcfxml.py index 513c64cdf2..e9bcde349f 100644 --- a/src/bcf/src/bcf/bcfxml.py +++ b/src/bcf/src/bcf/bcfxml.py @@ -1,3 +1,22 @@ +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + + import os.path import zipfile import tempfile diff --git a/src/bcf/src/bcf/v2/__init__.py b/src/bcf/src/bcf/v2/__init__.py index e69de29bb2..adb79b4034 100644 --- a/src/bcf/src/bcf/v2/__init__.py +++ b/src/bcf/src/bcf/v2/__init__.py @@ -0,0 +1,19 @@ + +# BCF - BCF Python library +# Copyright (C) 2020, 2021 Dion Moult +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + diff --git a/src/bcf/src/bcf/v2/bcfxml.py b/src/bcf/src/bcf/v2/bcfxml.py index 3b4dd722b0..76c094d69e 100644 --- a/src/bcf/src/bcf/v2/bcfxml.py +++ b/src/bcf/src/bcf/v2/bcfxml.py @@ -1,3 +1,22 @@ + +# BCF - BCF Python library +# Copyright (C) 2020, 2021 Dion Moult +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + import os import uuid import shutil diff --git a/src/bcf/src/bcf/v2/data.py b/src/bcf/src/bcf/v2/data.py index 534aacaffc..e79352dbd0 100644 --- a/src/bcf/src/bcf/v2/data.py +++ b/src/bcf/src/bcf/v2/data.py @@ -1,3 +1,22 @@ + +# BCF - BCF Python library +# Copyright (C) 2020, 2021 Dion Moult +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + class Project: def __init__(self): self.project_id = "" diff --git a/src/bcf/src/bcf/v3/__init__.py b/src/bcf/src/bcf/v3/__init__.py index e69de29bb2..5828265521 100644 --- a/src/bcf/src/bcf/v3/__init__.py +++ b/src/bcf/src/bcf/v3/__init__.py @@ -0,0 +1,19 @@ + +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + diff --git a/src/bcf/src/bcf/v3/bcfapi.py b/src/bcf/src/bcf/v3/bcfapi.py index a6fa9907e9..308f323eb8 100644 --- a/src/bcf/src/bcf/v3/bcfapi.py +++ b/src/bcf/src/bcf/v3/bcfapi.py @@ -1,3 +1,22 @@ + +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + import uuid import time import json diff --git a/src/bcf/src/bcf/v3/bcfxml.py b/src/bcf/src/bcf/v3/bcfxml.py index 6298260d3d..9d9578e576 100644 --- a/src/bcf/src/bcf/v3/bcfxml.py +++ b/src/bcf/src/bcf/v3/bcfxml.py @@ -1,3 +1,22 @@ + +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + import os import uuid import shutil diff --git a/src/bcf/src/bcf/v3/data.py b/src/bcf/src/bcf/v3/data.py index b6f241e148..a166a3b1b2 100644 --- a/src/bcf/src/bcf/v3/data.py +++ b/src/bcf/src/bcf/v3/data.py @@ -1,3 +1,22 @@ + +# BCF - BCF Python library +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of BCF. +# +# BCF is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# BCF 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with BCF. If not, see . + class Project: def __init__(self): self.project_id = "" diff --git a/src/opencdeserver/opencdeserver/bcf/routes.py b/src/opencdeserver/opencdeserver/bcf/routes.py index d9a1450bc7..fb0779dbc5 100644 --- a/src/opencdeserver/opencdeserver/bcf/routes.py +++ b/src/opencdeserver/opencdeserver/bcf/routes.py @@ -1,3 +1,22 @@ + +# OpenCDE - OpenCDE Python implementation +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of OpenCDE. +# +# OpenCDE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenCDE 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenCDE. If not, see . + from flask import jsonify, url_for, redirect, render_template, request, session, send_file from flask_login import login_user, logout_user, login_required, current_user from flask.blueprints import Blueprint diff --git a/src/opencdeserver/opencdeserver/bcf/templates/base.html b/src/opencdeserver/opencdeserver/bcf/templates/base.html index e69de29bb2..59ae9b37da 100644 --- a/src/opencdeserver/opencdeserver/bcf/templates/base.html +++ b/src/opencdeserver/opencdeserver/bcf/templates/base.html @@ -0,0 +1,19 @@ + diff --git a/src/opencdeserver/opencdeserver/foundation/forms.py b/src/opencdeserver/opencdeserver/foundation/forms.py index d326108a6e..2f86536b8d 100644 --- a/src/opencdeserver/opencdeserver/foundation/forms.py +++ b/src/opencdeserver/opencdeserver/foundation/forms.py @@ -1,3 +1,22 @@ + +# OpenCDE - OpenCDE Python implementation +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of OpenCDE. +# +# OpenCDE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenCDE 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenCDE. If not, see . + from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo diff --git a/src/opencdeserver/opencdeserver/foundation/models.py b/src/opencdeserver/opencdeserver/foundation/models.py index 4eef828f05..db451e4022 100644 --- a/src/opencdeserver/opencdeserver/foundation/models.py +++ b/src/opencdeserver/opencdeserver/foundation/models.py @@ -1,3 +1,22 @@ + +# OpenCDE - OpenCDE Python implementation +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of OpenCDE. +# +# OpenCDE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenCDE 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenCDE. If not, see . + from run import db, bcrypt, login_manager import time from authlib.integrations.sqla_oauth2 import ( diff --git a/src/opencdeserver/opencdeserver/foundation/oauth2.py b/src/opencdeserver/opencdeserver/foundation/oauth2.py index b0d9e24b9f..bc69b28c0e 100644 --- a/src/opencdeserver/opencdeserver/foundation/oauth2.py +++ b/src/opencdeserver/opencdeserver/foundation/oauth2.py @@ -1,3 +1,22 @@ + +# OpenCDE - OpenCDE Python implementation +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of OpenCDE. +# +# OpenCDE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenCDE 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenCDE. If not, see . + from authlib.integrations.flask_oauth2 import ( AuthorizationServer, ResourceProtector, diff --git a/src/opencdeserver/opencdeserver/foundation/routes.py b/src/opencdeserver/opencdeserver/foundation/routes.py index 9fdb7957bb..4f817b3d70 100644 --- a/src/opencdeserver/opencdeserver/foundation/routes.py +++ b/src/opencdeserver/opencdeserver/foundation/routes.py @@ -1,3 +1,22 @@ + +# OpenCDE - OpenCDE Python implementation +# Copyright (C) 2021 Prabhat Singh +# +# This file is part of OpenCDE. +# +# OpenCDE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenCDE 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenCDE. If not, see . + from flask.blueprints import Blueprint from flask import render_template, redirect, url_for, flash, request from werkzeug import datastructures diff --git a/src/opencdeserver/opencdeserver/foundation/templates/base.html b/src/opencdeserver/opencdeserver/foundation/templates/base.html index 534b7f5c43..70cb6009c5 100644 --- a/src/opencdeserver/opencdeserver/foundation/templates/base.html +++ b/src/opencdeserver/opencdeserver/foundation/templates/base.html @@ -1,3 +1,22 @@ + diff --git a/src/opencdeserver/opencdeserver/foundation/templates/clientdata.html b/src/opencdeserver/opencdeserver/foundation/templates/clientdata.html index ee434e5861..c78d37c989 100644 --- a/src/opencdeserver/opencdeserver/foundation/templates/clientdata.html +++ b/src/opencdeserver/opencdeserver/foundation/templates/clientdata.html @@ -1,3 +1,22 @@ + {%extends 'base.html'%} {%block content%} {% if user %}