# HG changeset patch # User ymh # Date 1380586448 -7200 # Node ID a345f1a67bf19c8ad69f9cd73a1d670982c13df4 # Parent 78024463791d63f91557c6daaf90c4240b8730d8 Python licence headers diff -r 78024463791d -r a345f1a67bf1 src/p4l/__init__.py --- a/src/p4l/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + VERSION = (0, 1, 0, "final", 0) diff -r 78024463791d -r a345f1a67bf1 src/p4l/admin.py --- a/src/p4l/admin.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/admin.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from django.contrib import admin from django.contrib.auth.admin import UserAdmin as AuthUserAdmin from django.utils.translation import gettext_lazy as _ diff -r 78024463791d -r a345f1a67bf1 src/p4l/api/__init__.py --- a/src/p4l/api/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/api/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/api/renderers.py --- a/src/p4l/api/renderers.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/api/renderers.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 2, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from rest_framework.renderers import BaseRenderer diff -r 78024463791d -r a345f1a67bf1 src/p4l/api/serializers.py --- a/src/p4l/api/serializers.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/api/serializers.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 2, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from django.core.exceptions import ValidationError from p4l.models import Record from rest_framework import serializers diff -r 78024463791d -r a345f1a67bf1 src/p4l/api/urls.py --- a/src/p4l/api/urls.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/api/urls.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 2, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from django.conf.urls import patterns, include, url from rest_framework import routers diff -r 78024463791d -r a345f1a67bf1 src/p4l/api/views.py --- a/src/p4l/api/views.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/api/views.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 2, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from p4l.api.serializers import RecordSerializer from p4l.models import Record, signals from rest_framework import viewsets diff -r 78024463791d -r a345f1a67bf1 src/p4l/context_processors.py --- a/src/p4l/context_processors.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/context_processors.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from p4l import get_version def version(request): diff -r 78024463791d -r a345f1a67bf1 src/p4l/forms.py --- a/src/p4l/forms.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/forms.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 4, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.forms import (UserChangeForm as AuthUserChangeForm, diff -r 78024463791d -r a345f1a67bf1 src/p4l/management/__init__.py --- a/src/p4l/management/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/management/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/management/commands/__init__.py --- a/src/p4l/management/commands/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/management/commands/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/management/commands/dump_record.py --- a/src/p4l/management/commands/dump_record.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/management/commands/dump_record.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 30, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' import bz2 import codecs diff -r 78024463791d -r a345f1a67bf1 src/p4l/management/commands/import_record.py --- a/src/p4l/management/commands/import_record.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/management/commands/import_record.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,4 +1,35 @@ # -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# import logging from optparse import make_option diff -r 78024463791d -r a345f1a67bf1 src/p4l/mapping/__init__.py --- a/src/p4l/mapping/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/mapping/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from rdflib.namespace import RDFS from p4l.mapping.constants import IIEP, DCT diff -r 78024463791d -r a345f1a67bf1 src/p4l/mapping/constants.py --- a/src/p4l/mapping/constants.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/mapping/constants.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 30, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from rdflib.graph import Graph from rdflib.namespace import Namespace, RDF diff -r 78024463791d -r a345f1a67bf1 src/p4l/mapping/parsers.py --- a/src/p4l/mapping/parsers.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/mapping/parsers.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 20, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from rdflib.plugins.sparql.processor import prepareQuery from rdflib.term import URIRef from p4l.models.data import Language, Record diff -r 78024463791d -r a345f1a67bf1 src/p4l/mapping/serializers.py --- a/src/p4l/mapping/serializers.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/mapping/serializers.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 19, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' import logging from rdflib.namespace import RDF diff -r 78024463791d -r a345f1a67bf1 src/p4l/migrations/0001_initial.py --- a/src/p4l/migrations/0001_initial.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/migrations/0001_initial.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,4 +1,36 @@ # -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + import datetime from django.db import models diff -r 78024463791d -r a345f1a67bf1 src/p4l/migrations/__init__.py --- a/src/p4l/migrations/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/migrations/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/models/__init__.py --- a/src/p4l/models/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/models/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,41 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# __all__ = ['Imprint', 'Serie', 'ProjectName', 'CorporateAuthor', 'Url', 'Subject', 'Theme', 'Country', 'Isbn','Issn', 'DocumentCode', 'Language', 'Title', 'AddedTitle', 'TitleMainDocument', 'Abstract' 'Collation', 'VolumeIssue', 'Author', 'SubjectPerson', 'Periodical', - 'Meeting', 'SubjectMeeting', 'Record', 'User', 'Audience'] + 'Meeting', 'SubjectMeeting', 'Record', 'Audience', 'User'] from p4l.models.data import (Imprint, Serie, ProjectName, CorporateAuthor, Url, Subject, Theme, Country, Isbn, Issn, DocumentCode, Language, Title, AddedTitle, diff -r 78024463791d -r a345f1a67bf1 src/p4l/models/common.py --- a/src/p4l/models/common.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/models/common.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from django.db import models class P4lModel(models.Model): diff -r 78024463791d -r a345f1a67bf1 src/p4l/models/data.py --- a/src/p4l/models/data.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/models/data.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,4 +1,35 @@ # -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# from django.db import models diff -r 78024463791d -r a345f1a67bf1 src/p4l/models/signals.py --- a/src/p4l/models/signals.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/models/signals.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 26, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' import django.dispatch diff -r 78024463791d -r a345f1a67bf1 src/p4l/models/user.py --- a/src/p4l/models/user.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/models/user.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 04, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.signals import user_logged_in diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/__init__.py --- a/src/p4l/search/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/forms.py --- a/src/p4l/search/forms.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/forms.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 20, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from haystack.forms import SearchForm from p4l.models.data import Record diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/index.py --- a/src/p4l/search/index.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/index.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 20, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from haystack import indexes diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/query_parser.py --- a/src/p4l/search/query_parser.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/query_parser.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 1, 2012 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from django.conf import settings from haystack.query import SQ diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/signals.py --- a/src/p4l/search/signals.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/signals.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Feb 22, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from django.conf import settings from django.db import models from haystack import signals diff -r 78024463791d -r a345f1a67bf1 src/p4l/search/views.py --- a/src/p4l/search/views.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search/views.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,37 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 20, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' + from django.conf import settings from django.template.context import RequestContext from haystack.query import SearchQuerySet diff -r 78024463791d -r a345f1a67bf1 src/p4l/search_indexes.py --- a/src/p4l/search_indexes.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/search_indexes.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,8 +1,35 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 20, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from p4l.search.index import RecordIndex # @UnusedImport \ No newline at end of file diff -r 78024463791d -r a345f1a67bf1 src/p4l/semantictree/__init__.py --- a/src/p4l/semantictree/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/semantictree/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/semantictree/forms/__init__.py --- a/src/p4l/semantictree/forms/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/semantictree/forms/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/semantictree/forms/forms.py --- a/src/p4l/semantictree/forms/forms.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/semantictree/forms/forms.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from django import forms from .widgets import SemanticTreeWidget, SemanticTagItWidget diff -r 78024463791d -r a345f1a67bf1 src/p4l/semantictree/forms/widgets.py --- a/src/p4l/semantictree/forms/widgets.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/semantictree/forms/widgets.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,6 +1,35 @@ -""" -Some useful form widgets -""" +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# from django import forms from django.core.exceptions import ValidationError diff -r 78024463791d -r a345f1a67bf1 src/p4l/settings.py --- a/src/p4l/settings.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/settings.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + # Django settings for p4l project. from django.conf import global_settings diff -r 78024463791d -r a345f1a67bf1 src/p4l/templatetags/__init__.py --- a/src/p4l/templatetags/__init__.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/templatetags/__init__.py Tue Oct 01 02:14:08 2013 +0200 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + diff -r 78024463791d -r a345f1a67bf1 src/p4l/templatetags/p4lstringfilters.py --- a/src/p4l/templatetags/p4lstringfilters.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/templatetags/p4lstringfilters.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from django.template import Library from django.template.defaultfilters import stringfilter from django.utils.safestring import SafeData diff -r 78024463791d -r a345f1a67bf1 src/p4l/templatetags/p4lutils.py --- a/src/p4l/templatetags/p4lutils.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/templatetags/p4lutils.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Sep 24, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: ymh -''' from django.template import Library register = Library() diff -r 78024463791d -r a345f1a67bf1 src/p4l/urls.py --- a/src/p4l/urls.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/urls.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,36 @@ +# -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.auth import urls as auth_urls diff -r 78024463791d -r a345f1a67bf1 src/p4l/utils.py --- a/src/p4l/utils.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/utils.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,4 +1,36 @@ # -*- coding: utf-8 -*- +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# + import codecs import logging import math diff -r 78024463791d -r a345f1a67bf1 src/p4l/views.py --- a/src/p4l/views.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/views.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,9 +1,36 @@ # -*- coding: utf-8 -*- -''' -Created on Aug 27, 2013 +# +# Copyright IRI (2013) +# +# contact@iri.centrepompidou.fr +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# -@author: tc -''' import json import logging import time diff -r 78024463791d -r a345f1a67bf1 src/p4l/wsgi.py --- a/src/p4l/wsgi.py Mon Sep 30 16:25:14 2013 +0200 +++ b/src/p4l/wsgi.py Tue Oct 01 02:14:08 2013 +0200 @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ WSGI config for p4l project. @@ -13,6 +14,7 @@ framework. """ + import os # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks