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
+# 
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
 SUBDIRS = lodel progs lodelsites
21
 SUBDIRS = lodel progs lodelsites
2
 EXTRA_DIST = runtest examples tests debian
22
 EXTRA_DIST = runtest examples tests debian
3
 CLEANFILES = runtest
23
 CLEANFILES = runtest

+ 6
- 5
configure.ac View File

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 1
editorial_models/em_simple.py View File

1
 #!/usr/bin/python3
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
 import sys
22
 import sys
4
 import os, os.path
23
 import os, os.path
5
 
24
 

+ 6
- 5
em_test.py View File

1
 #!/usr/bin/python3
1
 #!/usr/bin/python3
2
-#
2
+# 
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4
 #
4
 #
5
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
12
 # This program is distributed in the hope that it will be useful,
12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
15
 # GNU Affero General Public License for more details.
15
 #
16
 #
16
 # You should have received a copy of the GNU Affero General Public License
17
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
lodelsites_em.py View File

1
 #!/usr/bin/python3
1
 #!/usr/bin/python3
2
-#
2
+# 
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4
 #
4
 #
5
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
12
 # This program is distributed in the hope that it will be useful,
12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
15
 # GNU Affero General Public License for more details.
15
 #
16
 #
16
 # You should have received a copy of the GNU Affero General Public License
17
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
nocontext_tests.py View File

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 0
progs/Makefile.am View File

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
 SUBDIRS=slim
21
 SUBDIRS=slim
2
 
22
 
3
 lodel2_scripts_dir = $(datadir)/lodel2/scripts
23
 lodel2_scripts_dir = $(datadir)/lodel2/scripts

+ 19
- 0
progs/create_data.sh View File

1
 #!/bin/bash
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
 usage() {
22
 usage() {
4
 	echo -e "Usage : $0 host_of_server instance_name host_of_db number_of_iterations >&2"
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
 #!/bin/bash
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
 usage() {
22
 usage() {
4
     echo -e "Usage : $0 host_of_server instance_name host_of_db number_of_iterations >&2"
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
 #!/bin/bash
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
 usage() {
22
 usage() {
4
 	echo -e "Usage : $0 instance_name (instance_dir|-u) [install_tpl] [em_file] [lidir]" >&2
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
 #!/bin/bash
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
 conffile="[@]LODEL2_CONFDIR[@]/mass_deploy.cfg"
22
 conffile="[@]LODEL2_CONFDIR[@]/mass_deploy.cfg"
4
 
23
 

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

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
 bin_SCRIPTS = slim
21
 bin_SCRIPTS = slim
2
 CLEANFILES = $(bin_SCRIPTS) slim_instances.json slim_instances_pid.json
22
 CLEANFILES = $(bin_SCRIPTS) slim_instances.json slim_instances_pid.json
3
 EXTRA_DIST = slim.py install_model emfile.pickle
23
 EXTRA_DIST = slim.py install_model emfile.pickle

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

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
 python=python3
21
 python=python3
2
 
22
 
3
 all: dyncode
23
 all: dyncode

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

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
 [lodel2]
21
 [lodel2]
2
 debug = False
22
 debug = False
3
 sitename = noname
23
 sitename = noname

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

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
 ##@brief Lodel2 loader script
21
 ##@brief Lodel2 loader script
4
 #
22
 #

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

1
 #!/usr/bin/env python3
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
 import sys
23
 import sys
5
 import os, os.path
24
 import os, os.path

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

1
 #!/usr/bin/env python3
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
 import os, os.path
22
 import os, os.path

+ 6
- 5
runtest_context.sh View File

1
 #!/bin/bash
1
 #!/bin/bash
2
-#
2
+# 
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
4
 #
4
 #
5
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
12
 # This program is distributed in the hope that it will be useful,
12
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
15
 # GNU Affero General Public License for more details.
15
 #
16
 #
16
 # You should have received a copy of the GNU Affero General Public License
17
 # You should have received a copy of the GNU Affero General Public License

+ 20
- 0
scripts/__init__.py View File

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
-#-*- 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
 import sys
21
 import sys
4
 import os, os.path
22
 import os, os.path

+ 20
- 0
scripts/cbl.sh View File

1
 #!/bin/bash
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
 # CBL : Curl Benchmark on Lodel
23
 # CBL : Curl Benchmark on Lodel
4
 #
24
 #
5
 # Usage : $0 [HOSTNAME] [INSTANCE_LIST_FILE] [N_CREATE] [N_EDIT] [N_DELETE]
25
 # Usage : $0 [HOSTNAME] [INSTANCE_LIST_FILE] [N_CREATE] [N_EDIT] [N_DELETE]

+ 19
- 0
scripts/redeploy_chrooted_lodel2.sh View File

1
 #!/bin/bash
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
 schroot_cmd="schroot --directory /tmp -c lodel2"
22
 schroot_cmd="schroot --directory /tmp -c lodel2"
4
 chrootdir="/localdata/lodel2-chroot"
23
 chrootdir="/localdata/lodel2-chroot"

+ 19
- 1
scripts/refreshdyn.py View File

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
 import sys
21
 import sys
4
 import admin
22
 import admin

+ 20
- 1
scripts/settings_validator.py View File

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
 import sys
21
 import sys
3
 import os, os.path
22
 import os, os.path
4
 sys.path.append(os.path.dirname(os.getcwd()+'/..'))
23
 sys.path.append(os.path.dirname(os.getcwd()+'/..'))

+ 6
- 5
tests/__init__.py View File

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

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
+# 
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
 import unittest
21
 import unittest
2
 from lodel.exceptions import *
22
 from lodel.exceptions import *
3
 
23
 

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 from lodel.leapi.datahandlers.datas import Concat as Testee
23
 from lodel.leapi.datahandlers.datas import Concat as Testee
19
         field_list  = ['', '', '']
39
         field_list  = ['', '', '']
20
         testee = Testee(field_list, separator)
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
+# 
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
 import unittest
21
 import unittest
2
 
22
 
3
 from lodel.leapi.datahandlers.base_classes import DataHandler
23
 from lodel.leapi.datahandlers.base_classes import DataHandler

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

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
 import unittest
21
 import unittest
2
 import datetime
22
 import datetime
3
 from lodel.leapi.datahandlers.datas import DateTime
23
 from lodel.leapi.datahandlers.datas import DateTime

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

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
 import os
21
 import os
2
 import unittest
22
 import unittest
3
 import tempfile
23
 import tempfile

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 from lodel.leapi.datahandlers.datas import FormatString
23
 from lodel.leapi.datahandlers.datas import FormatString

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

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
 import unittest
21
 import unittest
2
 from lodel.leapi.datahandlers.datas import Integer, Boolean
22
 from lodel.leapi.datahandlers.datas import Integer, Boolean
3
 from lodel.exceptions import *
23
 from lodel.exceptions import *

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

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
 import unittest
21
 import unittest
2
 import inspect
22
 import inspect
3
 
23
 

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

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
 import unittest
21
 import unittest
2
 from lodel.leapi.datahandlers.datas import Password as Testee
22
 from lodel.leapi.datahandlers.datas import Password as Testee
3
 
23
 

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

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
 import unittest
22
 import unittest
3
 
23
 

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

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
 import unittest
21
 import unittest
2
 from lodel.exceptions import *
22
 from lodel.exceptions import *
3
 from lodel.leapi.datahandlers.datas import Regex, Varchar, Integer, UniqID
23
 from lodel.leapi.datahandlers.datas import Regex, Varchar, Integer, UniqID

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 from lodel.leapi.datahandlers.datas import Text
23
 from lodel.leapi.datahandlers.datas import Text

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

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
 import unittest
21
 import unittest
2
 from unittest import mock 
22
 from unittest import mock 
3
 from unittest.mock import patch
23
 from unittest.mock import patch

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

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
 import unittest
21
 import unittest
2
 from lodel.leapi.datahandlers.datas import Varchar, Integer
22
 from lodel.leapi.datahandlers.datas import Varchar, Integer
3
 from lodel.leapi.datahandlers.base_classes import FieldValidationError
23
 from lodel.leapi.datahandlers.base_classes import FieldValidationError

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 from lodel.leapi.datahandlers.datas import VarcharList as Testee
23
 from lodel.leapi.datahandlers.datas import VarcharList as Testee

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

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
-#-*- 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
 import unittest
21
 import unittest
4
 
22
 

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

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
 import unittest
21
 import unittest
4
 import tempfile
22
 import tempfile

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

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
 import unittest
21
 import unittest
4
 import tempfile
22
 import tempfile

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

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

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
+# 
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
 import copy
21
 import copy
2
 import datetime
22
 import datetime
3
 import unittest
23
 import unittest

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 import tests.loader_utils
23
 import tests.loader_utils

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

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
 import unittest
21
 import unittest
2
 
22
 
3
 import itertools
23
 import itertools

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License
17
 #
18
 #
18
 
19
 
19
 
20
 
20
-#
21
+##
21
 # Importing this file trigger dynamic code generation & load
22
 # Importing this file trigger dynamic code generation & load
22
 #
23
 #
23
 # To use dynamic code import utils.dyncode_module as dyncode
24
 # To use dynamic code import utils.dyncode_module as dyncode

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

+ 6
- 5
tests/loader_utils.py View File

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
+# 
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
 [lodel2.logging.default]
21
 [lodel2.logging.default]
2
 level = DEBUG
22
 level = DEBUG
3
 context = True
23
 context = True

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

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
 [lodel2]
21
 [lodel2]
2
 lib_path = /home/helene/lodel2
22
 lib_path = /home/helene/lodel2
3
 plugins_path = /home/helene/lodel2/plugins
23
 plugins_path = /home/helene/lodel2/plugins

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

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

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
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
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License
16
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 #
18
 #
18
 
19
 
20
+
19
 [lodel2]
21
 [lodel2]
20
 debug = False
22
 debug = False
21
 sitename = noname
23
 sitename = noname

+ 6
- 5
tests/utils.py View File

1
-#
1
+# 
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
2
 # This file is part of Lodel 2 (https://github.com/OpenEdition)
3
 #
3
 #
4
 # Copyright (C) 2015-2017 Cléo UMS-3287
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
 # This program is distributed in the hope that it will be useful,
11
 # This program is distributed in the hope that it will be useful,
11
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
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
 # GNU Affero General Public License for more details.
14
 # GNU Affero General Public License for more details.
14
 #
15
 #
15
 # You should have received a copy of the GNU Affero General Public License
16
 # You should have received a copy of the GNU Affero General Public License

Loading…
Cancel
Save