From ab10a722a7ac876c2607c57e83e24e53f3ab59d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Fri, 11 Sep 2015 10:09:18 +0200 Subject: [PATCH] Add a licence header to python files. --- setup.py | 19 ++++++++++++++- src/biomon/__init__.py | 22 ++++++++++++++++++ src/biomon/cbv.py | 23 ++++++++++++++++--- src/biomon/forms.py | 22 ++++++++++++++++++ src/biomon/livedata_provider/__init__.py | 22 ++++++++++++++++++ .../livedata_provider/graphite_custom.py | 22 ++++++++++++++++++ src/biomon/livedata_provider/urls.py | 22 ++++++++++++++++++ src/biomon/livedata_provider/views.py | 22 ++++++++++++++++++ src/biomon/medibot/__init__.py | 22 ++++++++++++++++++ src/biomon/medibot/definitions.py | 22 ++++++++++++++++++ src/biomon/medibot/models.py | 22 ++++++++++++++++++ src/biomon/medibot/watcher.py | 21 +++++++++++++++++ src/biomon/models.py | 22 ++++++++++++++++++ src/biomon/urls.py | 22 ++++++++++++++++++ src/biomon/views.py | 20 ++++++++++++++++ src/biomon/whisper_backend.py | 22 ++++++++++++++++++ 16 files changed, 343 insertions(+), 4 deletions(-) mode change 100755 => 100644 setup.py diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index eb7a197..60a5c3f --- a/setup.py +++ b/setup.py @@ -1,9 +1,26 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- ''' - Setup script for Biomon + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . ''' + import sys import os import subprocess diff --git a/src/biomon/__init__.py b/src/biomon/__init__.py index e69de29..2820040 100644 --- a/src/biomon/__init__.py +++ b/src/biomon/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + diff --git a/src/biomon/cbv.py b/src/biomon/cbv.py index 38bf77e..665f550 100644 --- a/src/biomon/cbv.py +++ b/src/biomon/cbv.py @@ -1,6 +1,23 @@ -""" -Class Based Views -""" +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 django.views.generic import base, detail diff --git a/src/biomon/forms.py b/src/biomon/forms.py index 3d77509..037c2a9 100644 --- a/src/biomon/forms.py +++ b/src/biomon/forms.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import simplejson as json from django import forms diff --git a/src/biomon/livedata_provider/__init__.py b/src/biomon/livedata_provider/__init__.py index e69de29..2820040 100644 --- a/src/biomon/livedata_provider/__init__.py +++ b/src/biomon/livedata_provider/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + diff --git a/src/biomon/livedata_provider/graphite_custom.py b/src/biomon/livedata_provider/graphite_custom.py index 5728e4f..3808996 100644 --- a/src/biomon/livedata_provider/graphite_custom.py +++ b/src/biomon/livedata_provider/graphite_custom.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + RENDER_PARAMS = {"bgcolor": "000000", "majorGridLineColor": "FFFFFF", "minorGridLineColor": "FFFFFF", diff --git a/src/biomon/livedata_provider/urls.py b/src/biomon/livedata_provider/urls.py index 5ca5491..d3ea970 100644 --- a/src/biomon/livedata_provider/urls.py +++ b/src/biomon/livedata_provider/urls.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 django.conf.urls import patterns, url from . import views diff --git a/src/biomon/livedata_provider/views.py b/src/biomon/livedata_provider/views.py index a3eee93..7f50218 100644 --- a/src/biomon/livedata_provider/views.py +++ b/src/biomon/livedata_provider/views.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import urllib import urllib2 import urlparse diff --git a/src/biomon/medibot/__init__.py b/src/biomon/medibot/__init__.py index e69de29..2820040 100644 --- a/src/biomon/medibot/__init__.py +++ b/src/biomon/medibot/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + diff --git a/src/biomon/medibot/definitions.py b/src/biomon/medibot/definitions.py index 3be2bd0..7bf1423 100644 --- a/src/biomon/medibot/definitions.py +++ b/src/biomon/medibot/definitions.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import re import operator diff --git a/src/biomon/medibot/models.py b/src/biomon/medibot/models.py index 534635a..eb7da33 100644 --- a/src/biomon/medibot/models.py +++ b/src/biomon/medibot/models.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 django.db import models from django.utils.translation import ugettext_lazy as _ diff --git a/src/biomon/medibot/watcher.py b/src/biomon/medibot/watcher.py index b50c960..d5fe4e2 100644 --- a/src/biomon/medibot/watcher.py +++ b/src/biomon/medibot/watcher.py @@ -1,4 +1,25 @@ # -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import json import math from time import sleep diff --git a/src/biomon/models.py b/src/biomon/models.py index e2c892c..0fcacf7 100644 --- a/src/biomon/models.py +++ b/src/biomon/models.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import simplejson as json from datetime import datetime diff --git a/src/biomon/urls.py b/src/biomon/urls.py index aaab643..8bef0bc 100644 --- a/src/biomon/urls.py +++ b/src/biomon/urls.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin diff --git a/src/biomon/views.py b/src/biomon/views.py index 33f484f..49b281a 100644 --- a/src/biomon/views.py +++ b/src/biomon/views.py @@ -1,5 +1,25 @@ # -*- coding: utf-8 -*- +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 django.views.generic import (TemplateView, FormView, View, ListView, CreateView, UpdateView, DeleteView) from django.contrib.auth import authenticate, login, logout diff --git a/src/biomon/whisper_backend.py b/src/biomon/whisper_backend.py index 4899c8c..fb78153 100644 --- a/src/biomon/whisper_backend.py +++ b/src/biomon/whisper_backend.py @@ -1,3 +1,25 @@ +# -*- coding: utf-8 -*- + +''' + biomon - Signs monitoring and patient management application + + Copyright (C) 2015 Entr'ouvert + + 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 . +''' + + import os import time from datetime import datetime