author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 12 Apr 2012 13:52:23 +0200 | |
changeset 8370 | 7a15f476dbb3 |
parent 8220 | e4ea285510e5 |
child 8397 | 42ec34b3ced9 |
permissions | -rw-r--r-- |
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
1 |
# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
2 |
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
3 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
4 |
# This file is part of CubicWeb. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
5 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
6 |
# CubicWeb is free software: you can redistribute it and/or modify it under the |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
7 |
# terms of the GNU Lesser General Public License as published by the Free |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
8 |
# Software Foundation, either version 2.1 of the License, or (at your option) |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
9 |
# any later version. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
10 |
# |
5424
8ecbcbff9777
replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5421
diff
changeset
|
11 |
# CubicWeb 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:
5306
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
13 |
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
14 |
# details. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
15 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
16 |
# You should have received a copy of the GNU Lesser General Public License along |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5306
diff
changeset
|
17 |
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
5147
70181998897f
more / cleaner / in code documentation of vreg, selectors and appobject
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5143
diff
changeset
|
18 |
|
4719
aaed3f813ef8
kill dead/useless code as suggested by pylint
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4664
diff
changeset
|
19 |
from warnings import warn |
1474 | 20 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
21 |
from logilab.common.deprecation import deprecated, class_renamed |
4462
c57c8176b8c2
reorganize, cleanup and properly document base selectors. Kill the may_add_relation selector.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4458
diff
changeset
|
22 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
23 |
from cubicweb.predicates import * |
4664
bd5ecd5b9494
#714109: [selectors] non_final_entity should implement score_class
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4545
diff
changeset
|
24 |
|
634
0badd061ce0f
move cubicweb.common.selectors to cubicweb.selectors
sylvain.thenault@logilab.fr
parents:
diff
changeset
|
25 |
|
8220
e4ea285510e5
[test] fix test broken by selectors/predicates changes coming with the move of registry to lgc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8190
diff
changeset
|
26 |
warn('[3.15] cubicweb.selectors renamed into cubicweb.predicates', |
e4ea285510e5
[test] fix test broken by selectors/predicates changes coming with the move of registry to lgc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8190
diff
changeset
|
27 |
DeprecationWarning, stacklevel=2) |
4462
c57c8176b8c2
reorganize, cleanup and properly document base selectors. Kill the may_add_relation selector.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4458
diff
changeset
|
28 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
29 |
# XXX pre 3.15 bw compat |
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
30 |
from cubicweb.appobject import (objectify_selector, traced_selection, |
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
31 |
lltrace, yes) |
1474 | 32 |
|
8220
e4ea285510e5
[test] fix test broken by selectors/predicates changes coming with the move of registry to lgc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8190
diff
changeset
|
33 |
ExpectedValueSelector = class_renamed('ExpectedValueSelector', |
e4ea285510e5
[test] fix test broken by selectors/predicates changes coming with the move of registry to lgc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8190
diff
changeset
|
34 |
ExpectedValuePredicate) |
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
35 |
EClassSelector = class_renamed('EClassSelector', EClassPredicate) |
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
36 |
EntitySelector = class_renamed('EntitySelector', EntityPredicate) |
4462
c57c8176b8c2
reorganize, cleanup and properly document base selectors. Kill the may_add_relation selector.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4458
diff
changeset
|
37 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
38 |
# XXX pre 3.7? bw compat |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
39 |
|
7297
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
40 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
41 |
class on_transition(is_in_state): |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
42 |
"""Return 1 if entity is in one of the transitions given as argument list |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
43 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
44 |
Especially useful to match passed transition to enable notifications when |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
45 |
your workflow allows several transition to the same states. |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
46 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
47 |
Note that if workflow `change_state` adapter method is used, this predicate |
7297
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
48 |
will not be triggered. |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
49 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
50 |
You should use this instead of your own :class:`score_entity` predicate to |
7297
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
51 |
avoid some gotchas: |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
52 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
53 |
* possible views gives a fake entity with no state |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
54 |
* you must use the latest tr info thru the workflow adapter for repository |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
55 |
side checking of the current state |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
56 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
57 |
In debug mode, this predicate can raise: |
7297
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
58 |
:raises: :exc:`ValueError` for unknown transition names |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
59 |
(etype workflow only not checked in custom workflow) |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
60 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
61 |
:rtype: int |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
62 |
""" |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
63 |
@deprecated('[3.12] on_transition is deprecated, you should rather use ' |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
64 |
'on_fire_transition(etype, trname)') |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
65 |
def __init__(self, *expected): |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
66 |
super(on_transition, self).__init__(*expected) |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
67 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
68 |
def _score(self, adapted): |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
69 |
trinfo = adapted.latest_trinfo() |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
70 |
if trinfo and trinfo.by_transition: |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
71 |
return trinfo.by_transition[0].name in self.expected |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
72 |
|
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
73 |
def _validate(self, adapted): |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
74 |
wf = adapted.current_workflow |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
75 |
valid = [n.name for n in wf.reverse_transition_of] |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
76 |
unknown = sorted(self.expected.difference(valid)) |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
77 |
if unknown: |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
78 |
raise ValueError("%s: unknown transition(s): %s" |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
79 |
% (wf.name, ",".join(unknown))) |
117dbb11a42e
[workflow selectors] introduced new on_fire_transition hook selector, deprecated on_transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7173
diff
changeset
|
80 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
81 |
|
5877
0c7b7b76a84f
[selectors] provide a new, optimized, is_instance selector that should at some point replace implements (along with the adaptable selector)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5858
diff
changeset
|
82 |
entity_implements = class_renamed('entity_implements', is_instance) |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
83 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
84 |
class _but_etype(EntityPredicate): |
4071
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
85 |
"""accept if the given entity types are not found in the result set. |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
86 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
87 |
See `EntityPredicate` documentation for behaviour when row is not specified. |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
88 |
|
4071
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
89 |
:param *etypes: entity types (`basestring`) which should be refused |
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
90 |
""" |
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
91 |
def __init__(self, *etypes): |
4102
5ba6df5fcb07
missing underscore leads to infinite recursion error
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4081
diff
changeset
|
92 |
super(_but_etype, self).__init__() |
4071
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
93 |
self.but_etypes = etypes |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
94 |
|
4071
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
95 |
def score(self, req, rset, row, col): |
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
96 |
if rset.description[row][col] in self.but_etypes: |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
97 |
return 0 |
4071
e19e586cc74e
deprecates entity_implements / but_etype selectors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4026
diff
changeset
|
98 |
return 1 |
2972
23418c13e024
Backed out changeset d83f5d96e1d7
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2970
diff
changeset
|
99 |
|
5877
0c7b7b76a84f
[selectors] provide a new, optimized, is_instance selector that should at some point replace implements (along with the adaptable selector)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5858
diff
changeset
|
100 |
but_etype = class_renamed('but_etype', _but_etype, 'use ~is_instance(*etypes) instead') |
4320
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
101 |
|
8190
2a3c1b787688
[vreg] move base registry implementation to logilab.common. Closes #1916014
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
8034
diff
changeset
|
102 |
# XXX deprecated the one_* variants of predicates below w/ multi_xxx(nb=1)? |
4320
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
103 |
# take care at the implementation though (looking for the 'row' argument's |
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
104 |
# value) |
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
105 |
two_lines_rset = class_renamed('two_lines_rset', multi_lines_rset) |
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
106 |
two_cols_rset = class_renamed('two_cols_rset', multi_columns_rset) |
4efd4c306746
closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4264
diff
changeset
|
107 |
two_etypes_rset = class_renamed('two_etypes_rset', multi_etypes_rset) |