# HG changeset patch # User Denis Laxalde # Date 1486743224 -3600 # Node ID 83739be20fab0bf7060c13c4b79aaf89386c7ed4 # Parent fe995d56c9493cb58b382ddedb811d8958d43729 [pyramid] Add a copyright and docstring to all modules We add copyright statements for both UNLISH (original author) and LOGILAB. diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/__init__.py --- a/cubicweb/pyramid/__init__.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/__init__.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Pyramid interface to CubicWeb""" + import os from warnings import warn import wsgicors diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/auth.py --- a/cubicweb/pyramid/auth.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/auth.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Authentication policies for cubicweb.pyramid.""" + import datetime import logging import warnings diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/bwcompat.py --- a/cubicweb/pyramid/bwcompat.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/bwcompat.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Backward compatibility layer for CubicWeb to run as a Pyramid application.""" + import sys import logging diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/core.py --- a/cubicweb/pyramid/core.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/core.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Binding of CubicWeb connection to Pyramid request.""" + import itertools from contextlib import contextmanager diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/defaults.py --- a/cubicweb/pyramid/defaults.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/defaults.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,23 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """ Defaults for a classical CubicWeb instance. """ diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/login.py --- a/cubicweb/pyramid/login.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/login.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,23 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """ Provide login views that reproduce a classical CubicWeb behavior""" from pyramid import security from pyramid.httpexceptions import HTTPSeeOther diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/predicates.py --- a/cubicweb/pyramid/predicates.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/predicates.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,23 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """Contains predicates used in Pyramid views. """ diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/profile.py --- a/cubicweb/pyramid/profile.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/profile.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,23 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """ Tools for profiling. See :ref:`profiling`.""" diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/pyramidctl.py --- a/cubicweb/pyramid/pyramidctl.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/pyramidctl.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,9 +1,30 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """ Provides a 'pyramid' command as a replacement to the 'start' command. The reloading strategy is heavily inspired by (and partially copied from) the pyramid script 'pserve'. """ + from __future__ import print_function import atexit diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/resources.py --- a/cubicweb/pyramid/resources.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/resources.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,5 +1,25 @@ -"""Contains resources classes. -""" +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Pyramid resource definitions for CubicWeb.""" + from six import text_type from rql import TypeResolverException diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/rest_api.py --- a/cubicweb/pyramid/rest_api.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/rest_api.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Experimental REST API for CubicWeb using Pyramid.""" + from __future__ import absolute_import diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/session.py --- a/cubicweb/pyramid/session.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/session.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,25 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + +"""Pyramid session factories for CubicWeb.""" + import warnings import logging from contextlib import contextmanager diff -r fe995d56c949 -r 83739be20fab cubicweb/pyramid/tools.py --- a/cubicweb/pyramid/tools.py Wed Feb 08 17:54:16 2017 +0100 +++ b/cubicweb/pyramid/tools.py Fri Feb 10 17:13:44 2017 +0100 @@ -1,3 +1,23 @@ +# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved. +# +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + """Various tools. .. warning::