debian/copyright
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 07 Mar 2012 16:09:55 +0100
branchstable
changeset 8296 f23782a2cdee
parent 7046 d0410eb4d8bb
child 9343 cf21813d7003
permissions -rw-r--r--
rqlrewrite: remove element in rewritten when we remove them from the select (closes #2236985) update _cleanup_inserted to avoid leaving rewritten variable behind when removing a snipset. insert_varmap_snippets was impacted too for unclear reason --- Before A KeyError was raised when: * multiple snipset is to be inserted on a statement * some *supported* snipset adds ambiguity (increase the number of solution) * some *unsupported* snipset adds new variable * The new variable require rewritting :: File "/home/pyves/src/fcw/cubicweb/rqlrewrite.py", line 185, in rewrite newsolutions = self.remove_ambiguities(snippets, newsolutions) File "/home/pyves/src/fcw/cubicweb/rqlrewrite.py", line 436, in remove_ambiguities variantes = self.build_variantes(newsolutions) File "/home/pyves/src/fcw/cubicweb/devtools/repotest.py", line 340, in _build_variantes variantes = _orig_build_variantes(self, newsolutions) File "/home/pyves/src/fcw/cubicweb/rqlrewrite.py", line 470, in build_variantes variante.append( (key, sol[newvar]) ) KeyError: u'D' This happen because the mechanism removing unsupported snipset does not remove entry in ``self.rewritten`` when it removes entry from ``self.select.defined_vars``. Iteration on ``self.rewritten`` then crash because values of ``rewritten`` are expected to be found in solution.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     1
This package was debianized by Logilab <contact@logilab.fr>.
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     2
It was downloaded from ftp://ftp.logilab.org/pub/cubicweb
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     4
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     5
Upstream Author:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     6
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     7
    Logilab <contact@logilab.fr>
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     8
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     9
Copyright:
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    10
7046
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5421
diff changeset
    11
    Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    12
    http://www.logilab.fr/ -- mailto:contact@logilab.fr
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    13
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    14
License:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    15
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    16
    This program is free software; you can redistribute it and/or modify it
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    17
    under the terms of the GNU Lesser General Public License as published by the
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    18
    Free Software Foundation; either version 2.1 of the License, or (at your
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    19
    option) any later version.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    20
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    21
    This program is distributed in the hope that it will be useful, but WITHOUT
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    22
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    23
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    24
    for more details.
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    25
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    26
    You should have received a copy of the GNU Lessser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    27
    along with this program; if not, write to the Free Software Foundation,
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    28
    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    29
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    30
On Debian systems, the complete text of the GNU Lesser General Public License
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    31
may be found in '/usr/share/common-licenses/LGPL-2.1'.