Browse Source

Licensing follow up

Quentin Bonaventure 7 years ago
parent
commit
02cc999816
72 changed files with 1065 additions and 144 deletions
  1. 20
    0
      Makefile.am
  2. 6
    5
      configure.ac
  3. 20
    1
      editorial_models/em_simple.py
  4. 6
    5
      em_test.py
  5. 6
    5
      lodelsites_em.py
  6. 6
    5
      nocontext_tests.py
  7. 20
    0
      progs/Makefile.am
  8. 19
    0
      progs/create_data.sh
  9. 19
    0
      progs/create_data_simpleem.sh
  10. 19
    0
      progs/create_instance.sh
  11. 19
    0
      progs/mass_deploy.sh
  12. 20
    0
      progs/slim/Makefile.am
  13. 20
    0
      progs/slim/install_model/Makefile
  14. 20
    0
      progs/slim/install_model/conf.d/lodel2.ini
  15. 19
    1
      progs/slim/install_model/loader.py
  16. 20
    1
      progs/slim/install_model/lodel_admin.py
  17. 18
    1
      progs/slim/slim.py
  18. 6
    5
      runtest_context.sh
  19. 20
    0
      scripts/__init__.py
  20. 19
    1
      scripts/admin.py
  21. 20
    0
      scripts/cbl.sh
  22. 19
    0
      scripts/redeploy_chrooted_lodel2.sh
  23. 19
    1
      scripts/refreshdyn.py
  24. 20
    1
      scripts/settings_validator.py
  25. 6
    5
      tests/__init__.py
  26. 18
    2
      tests/datahandlers/__init__.py
  27. 20
    0
      tests/datahandlers/test_boolean.py
  28. 22
    1
      tests/datahandlers/test_concat.py
  29. 20
    0
      tests/datahandlers/test_datahandler.py
  30. 20
    0
      tests/datahandlers/test_datetime.py
  31. 20
    0
      tests/datahandlers/test_file.py
  32. 20
    0
      tests/datahandlers/test_formatstring.py
  33. 20
    0
      tests/datahandlers/test_integer.py
  34. 20
    0
      tests/datahandlers/test_leobjectidentifier.py
  35. 20
    0
      tests/datahandlers/test_password.py
  36. 20
    0
      tests/datahandlers/test_reference.py
  37. 20
    0
      tests/datahandlers/test_regex.py
  38. 20
    0
      tests/datahandlers/test_text.py
  39. 20
    0
      tests/datahandlers/test_uniqid.py
  40. 20
    0
      tests/datahandlers/test_varchar.py
  41. 20
    0
      tests/datahandlers/test_varcharlist.py
  42. 20
    0
      tests/editorial_model/__init__.py
  43. 19
    1
      tests/editorial_model/test_model.py
  44. 19
    1
      tests/editorial_model/test_translator_picklefile.py
  45. 19
    1
      tests/editorial_model/test_translator_xmlfile.py
  46. 20
    0
      tests/leapi/__init__.py
  47. 20
    0
      tests/leapi/query/__init__.py
  48. 20
    0
      tests/leapi/query/test_datasource.py
  49. 20
    0
      tests/leapi/query/test_filtered.py
  50. 20
    0
      tests/leapi/query/test_get.py
  51. 7
    6
      tests/leapi/query/utils.py
  52. 6
    5
      tests/leapi/test_lefactory.py
  53. 6
    5
      tests/leapi/test_leobject.py
  54. 6
    5
      tests/loader_utils.py
  55. 6
    5
      tests/migration_handler/__init__.py
  56. 6
    5
      tests/migration_handler/test_db_init.py
  57. 6
    5
      tests/nc_test_utils_mlstrings.py
  58. 6
    5
      tests/plugin/__init__.py
  59. 6
    5
      tests/plugin/test_plugin.py
  60. 6
    5
      tests/plugin/test_pluginversion.py
  61. 6
    5
      tests/plugin/tests_hooks.py
  62. 6
    5
      tests/settings/__init__.py
  63. 6
    5
      tests/settings/settings_tests.ini
  64. 20
    0
      tests/settings/settings_tests_conf.d/logger.ini
  65. 20
    0
      tests/settings/settings_tests_conf.d/settings.ini
  66. 6
    5
      tests/settings/test_settings.py
  67. 6
    5
      tests/settings/test_settings_loader.py
  68. 6
    5
      tests/settings/test_validator.py
  69. 6
    5
      tests/tests_conf.d/datasources.ini
  70. 6
    5
      tests/tests_conf.d/dummy_plugin.ini
  71. 7
    5
      tests/tests_conf.d/lodel2.ini
  72. 6
    5
      tests/utils.py

+ 20
- 0
Makefile.am View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 SUBDIRS = lodel progs lodelsites
2 22
 EXTRA_DIST = runtest examples tests debian
3 23
 CLEANFILES = runtest

+ 6
- 5
configure.ac View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 1
editorial_models/em_simple.py View File

@@ -1,5 +1,24 @@
1 1
 #!/usr/bin/python3
2
-#-*- coding: utf-8 -*-
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
21
+
3 22
 import sys
4 23
 import os, os.path
5 24
 

+ 6
- 5
em_test.py View File

@@ -1,16 +1,17 @@
1 1
 #!/usr/bin/python3
2
-#
2
+# 
3 3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4 4
 #
5 5
 # Copyright (C) 2015-2017 Cléo UMS-3287
6 6
 #
7
-# This program is free software: you can redistribute it and/or  modify
8
-# it under the terms of the GNU Affero General Public License, version 3,
9
-# as published by the Free Software Foundation.
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
10 11
 #
11 12
 # This program is distributed in the hope that it will be useful,
12 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 15
 # GNU Affero General Public License for more details.
15 16
 #
16 17
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
lodelsites_em.py View File

@@ -1,16 +1,17 @@
1 1
 #!/usr/bin/python3
2
-#
2
+# 
3 3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4 4
 #
5 5
 # Copyright (C) 2015-2017 Cléo UMS-3287
6 6
 #
7
-# This program is free software: you can redistribute it and/or  modify
8
-# it under the terms of the GNU Affero General Public License, version 3,
9
-# as published by the Free Software Foundation.
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
10 11
 #
11 12
 # This program is distributed in the hope that it will be useful,
12 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 15
 # GNU Affero General Public License for more details.
15 16
 #
16 17
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
nocontext_tests.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 0
progs/Makefile.am View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 SUBDIRS=slim
2 22
 
3 23
 lodel2_scripts_dir = $(datadir)/lodel2/scripts

+ 19
- 0
progs/create_data.sh View File

@@ -1,4 +1,23 @@
1 1
 #!/bin/bash
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
2 21
 
3 22
 usage() {
4 23
 	echo -e "Usage : $0 host_of_server instance_name host_of_db number_of_iterations >&2"

+ 19
- 0
progs/create_data_simpleem.sh View File

@@ -1,4 +1,23 @@
1 1
 #!/bin/bash
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
2 21
 
3 22
 usage() {
4 23
     echo -e "Usage : $0 host_of_server instance_name host_of_db number_of_iterations >&2"

+ 19
- 0
progs/create_instance.sh View File

@@ -1,4 +1,23 @@
1 1
 #!/bin/bash
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
2 21
 
3 22
 usage() {
4 23
 	echo -e "Usage : $0 instance_name (instance_dir|-u) [install_tpl] [em_file] [lidir]" >&2

+ 19
- 0
progs/mass_deploy.sh View File

@@ -1,4 +1,23 @@
1 1
 #!/bin/bash
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
2 21
 
3 22
 conffile="[@]LODEL2_CONFDIR[@]/mass_deploy.cfg"
4 23
 

+ 20
- 0
progs/slim/Makefile.am View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 bin_SCRIPTS = slim
2 22
 CLEANFILES = $(bin_SCRIPTS) slim_instances.json slim_instances_pid.json
3 23
 EXTRA_DIST = slim.py install_model emfile.pickle

+ 20
- 0
progs/slim/install_model/Makefile View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 python=python3
2 22
 
3 23
 all: dyncode

+ 20
- 0
progs/slim/install_model/conf.d/lodel2.ini View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 [lodel2]
2 22
 debug = False
3 23
 sitename = noname

+ 19
- 1
progs/slim/install_model/loader.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 ##@brief Lodel2 loader script
4 22
 #

+ 20
- 1
progs/slim/install_model/lodel_admin.py View File

@@ -1,5 +1,24 @@
1 1
 #!/usr/bin/env python3
2
-#-*- coding: utf-8 -*-
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
21
+
3 22
 
4 23
 import sys
5 24
 import os, os.path

+ 18
- 1
progs/slim/slim.py View File

@@ -1,5 +1,22 @@
1 1
 #!/usr/bin/env python3
2
-#-*- coding: utf-8 -*-
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
3 20
 
4 21
 
5 22
 import os, os.path

+ 6
- 5
runtest_context.sh View File

@@ -1,16 +1,17 @@
1 1
 #!/bin/bash
2
-#
2
+# 
3 3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4 4
 #
5 5
 # Copyright (C) 2015-2017 Cléo UMS-3287
6 6
 #
7
-# This program is free software: you can redistribute it and/or  modify
8
-# it under the terms of the GNU Affero General Public License, version 3,
9
-# as published by the Free Software Foundation.
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
10 11
 #
11 12
 # This program is distributed in the hope that it will be useful,
12 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 15
 # GNU Affero General Public License for more details.
15 16
 #
16 17
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 0
scripts/__init__.py View File

@@ -0,0 +1,20 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+

+ 19
- 1
scripts/admin.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 import sys
4 22
 import os, os.path

+ 20
- 0
scripts/cbl.sh View File

@@ -1,5 +1,25 @@
1 1
 #!/bin/bash
2 2
 #
3
+# 
4
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
5
+#
6
+# Copyright (C) 2015-2017 Cléo UMS-3287
7
+#
8
+# This program is free software: you can redistribute it and/or modify
9
+# it under the terms of the GNU Affero General Public License as published
10
+# by the Free Software Foundation, either version 3 of the License, or
11
+# (at your option) any later version.
12
+#
13
+# This program is distributed in the hope that it will be useful,
14
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+# GNU Affero General Public License for more details.
17
+#
18
+# You should have received a copy of the GNU Affero General Public License
19
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+#
21
+
22
+
3 23
 # CBL : Curl Benchmark on Lodel
4 24
 #
5 25
 # Usage : $0 [HOSTNAME] [INSTANCE_LIST_FILE] [N_CREATE] [N_EDIT] [N_DELETE]

+ 19
- 0
scripts/redeploy_chrooted_lodel2.sh View File

@@ -1,4 +1,23 @@
1 1
 #!/bin/bash
2
+# 
3
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
4
+#
5
+# Copyright (C) 2015-2017 Cléo UMS-3287
6
+#
7
+# This program is free software: you can redistribute it and/or modify
8
+# it under the terms of the GNU Affero General Public License as published
9
+# by the Free Software Foundation, either version 3 of the License, or
10
+# (at your option) any later version.
11
+#
12
+# This program is distributed in the hope that it will be useful,
13
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+# GNU Affero General Public License for more details.
16
+#
17
+# You should have received a copy of the GNU Affero General Public License
18
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+#
20
+
2 21
 
3 22
 schroot_cmd="schroot --directory /tmp -c lodel2"
4 23
 chrootdir="/localdata/lodel2-chroot"

+ 19
- 1
scripts/refreshdyn.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 import sys
4 22
 import admin

+ 20
- 1
scripts/settings_validator.py View File

@@ -1,4 +1,23 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
2 21
 import sys
3 22
 import os, os.path
4 23
 sys.path.append(os.path.dirname(os.getcwd()+'/..'))

+ 6
- 5
tests/__init__.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 18
- 2
tests/datahandlers/__init__.py View File

@@ -1,2 +1,18 @@
1
-# -*- coding: utf-8 -*-
2
-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#

+ 20
- 0
tests/datahandlers/test_boolean.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from lodel.exceptions import *
3 23
 

+ 22
- 1
tests/datahandlers/test_concat.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 from lodel.leapi.datahandlers.datas import Concat as Testee
@@ -19,4 +39,5 @@ class ConcatTestCase(unittest.TestCase):
19 39
         field_list  = ['', '', '']
20 40
         testee = Testee(field_list, separator)
21 41
         
22
-        self.assertEqual(testee._format_string, separator.join(['%s' for _ in field_list]))
42
+        self.assertEqual(testee._format_string, separator.join(['%s' for _ in field_list]))
43
+        

+ 20
- 0
tests/datahandlers/test_datahandler.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 from lodel.leapi.datahandlers.base_classes import DataHandler

+ 20
- 0
tests/datahandlers/test_datetime.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 import datetime
3 23
 from lodel.leapi.datahandlers.datas import DateTime

+ 20
- 0
tests/datahandlers/test_file.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import os
2 22
 import unittest
3 23
 import tempfile

+ 20
- 0
tests/datahandlers/test_formatstring.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 from lodel.leapi.datahandlers.datas import FormatString

+ 20
- 0
tests/datahandlers/test_integer.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from lodel.leapi.datahandlers.datas import Integer, Boolean
3 23
 from lodel.exceptions import *

+ 20
- 0
tests/datahandlers/test_leobjectidentifier.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 import inspect
3 23
 

+ 20
- 0
tests/datahandlers/test_password.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from lodel.leapi.datahandlers.datas import Password as Testee
3 23
 

+ 20
- 0
tests/datahandlers/test_reference.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 
2 22
 import unittest
3 23
 

+ 20
- 0
tests/datahandlers/test_regex.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from lodel.exceptions import *
3 23
 from lodel.leapi.datahandlers.datas import Regex, Varchar, Integer, UniqID

+ 20
- 0
tests/datahandlers/test_text.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 from lodel.leapi.datahandlers.datas import Text

+ 20
- 0
tests/datahandlers/test_uniqid.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from unittest import mock 
3 23
 from unittest.mock import patch

+ 20
- 0
tests/datahandlers/test_varchar.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 from lodel.leapi.datahandlers.datas import Varchar, Integer
3 23
 from lodel.leapi.datahandlers.base_classes import FieldValidationError

+ 20
- 0
tests/datahandlers/test_varcharlist.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 from lodel.leapi.datahandlers.datas import VarcharList as Testee

+ 20
- 0
tests/editorial_model/__init__.py View File

@@ -0,0 +1,20 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+

+ 19
- 1
tests/editorial_model/test_model.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 import unittest
4 22
 

+ 19
- 1
tests/editorial_model/test_translator_picklefile.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 import unittest
4 22
 import tempfile

+ 19
- 1
tests/editorial_model/test_translator_xmlfile.py View File

@@ -1,4 +1,22 @@
1
-#-*- coding: utf-8 -*-
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
2 20
 
3 21
 import unittest
4 22
 import tempfile

+ 20
- 0
tests/leapi/__init__.py View File

@@ -0,0 +1,20 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+

+ 20
- 0
tests/leapi/query/__init__.py View File

@@ -0,0 +1,20 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+

+ 20
- 0
tests/leapi/query/test_datasource.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import copy
2 22
 import datetime
3 23
 import unittest

+ 20
- 0
tests/leapi/query/test_filtered.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 import tests.loader_utils

+ 20
- 0
tests/leapi/query/test_get.py View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 import unittest
2 22
 
3 23
 import itertools

+ 7
- 6
tests/leapi/query/utils.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License
@@ -17,7 +18,7 @@
17 18
 #
18 19
 
19 20
 
20
-#
21
+##
21 22
 # Importing this file trigger dynamic code generation & load
22 23
 #
23 24
 # To use dynamic code import utils.dyncode_module as dyncode

+ 6
- 5
tests/leapi/test_lefactory.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/leapi/test_leobject.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/loader_utils.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/migration_handler/__init__.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/migration_handler/test_db_init.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/nc_test_utils_mlstrings.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/plugin/__init__.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/plugin/test_plugin.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/plugin/test_pluginversion.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/plugin/tests_hooks.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/settings/__init__.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/settings/settings_tests.ini View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 0
tests/settings/settings_tests_conf.d/logger.ini View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 [lodel2.logging.default]
2 22
 level = DEBUG
3 23
 context = True

+ 20
- 0
tests/settings/settings_tests_conf.d/settings.ini View File

@@ -1,3 +1,23 @@
1
+# 
2
+# This file is part of Lodel 2 (https://github.com/OpenEdition)
3
+#
4
+# Copyright (C) 2015-2017 Cléo UMS-3287
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU Affero General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU Affero General Public License
17
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
+#
19
+
20
+
1 21
 [lodel2]
2 22
 lib_path = /home/helene/lodel2
3 23
 plugins_path = /home/helene/lodel2/plugins

+ 6
- 5
tests/settings/test_settings.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/settings/test_settings_loader.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/settings/test_validator.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/tests_conf.d/datasources.ini View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/tests_conf.d/dummy_plugin.ini View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

+ 7
- 5
tests/tests_conf.d/lodel2.ini View File

@@ -1,21 +1,23 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License
16 17
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 18
 #
18 19
 
20
+
19 21
 [lodel2]
20 22
 debug = False
21 23
 sitename = noname

+ 6
- 5
tests/utils.py View File

@@ -1,15 +1,16 @@
1
-#
1
+# 
2 2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3 3
 #
4 4
 # Copyright (C) 2015-2017 Cléo UMS-3287
5 5
 #
6
-# This program is free software: you can redistribute it and/or  modify
7
-# it under the terms of the GNU Affero General Public License, version 3,
8
-# as published by the Free Software Foundation.
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published
8
+# by the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
9 10
 #
10 11
 # This program is distributed in the hope that it will be useful,
11 12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 # GNU Affero General Public License for more details.
14 15
 #
15 16
 # You should have received a copy of the GNU Affero General Public License

Loading…
Cancel
Save