.hgtags
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Dec 2017 17:57:57 +0100
changeset 2915 451328134bee
parent 2884 d4a8d7950007
child 2931 2929e483c48a
permissions -rw-r--r--
[entities] Add a safety belt avoid unexpected error in some corner case e.g. while debugging an instance I attempted to display result of 'Any X, C WHERE X container C' with unexpectedly to container for the entity, but I wasn't able to display it because rset.one() raised an error since len(rset) was 2. Even if the caller may be wrong, it seems ok to not call rset.one() if function is called in an erroneous context and simply return None in such case.

34aff511359870adb40068fa14aa7b57e4940e6c 0.5.0
34aff511359870adb40068fa14aa7b57e4940e6c debian/0.5.0-1
34aff511359870adb40068fa14aa7b57e4940e6c centos/0.5.0-1
8af441db29850805f30ecbd8d2ed0b04dcb6282f 0.5.1
8af441db29850805f30ecbd8d2ed0b04dcb6282f centos/0.5.1-1
8af441db29850805f30ecbd8d2ed0b04dcb6282f debian/0.5.1-1
9427d51e9dc885f6c3e363cab1bdb7894ee523ea 0.6.0
9427d51e9dc885f6c3e363cab1bdb7894ee523ea debian/0.6.0-1
9427d51e9dc885f6c3e363cab1bdb7894ee523ea centos/0.6.0-1
ec60056b9b1720719fd0549e14ab88b2d85d22b7 0.7.0
ec60056b9b1720719fd0549e14ab88b2d85d22b7 debian/0.7.0-1
ec60056b9b1720719fd0549e14ab88b2d85d22b7 centos/0.7.0-1
100ca5452c458c9c7d60c29ff71dcfb4bcfa350a 0.8.0
100ca5452c458c9c7d60c29ff71dcfb4bcfa350a debian/0.8.0-1
100ca5452c458c9c7d60c29ff71dcfb4bcfa350a centos/0.8.0-1
1db4f425bbffb05d0075df6fdd9e28458507a320 0.9.0
1db4f425bbffb05d0075df6fdd9e28458507a320 debian/0.9.0-1
1db4f425bbffb05d0075df6fdd9e28458507a320 centos/0.9.0-1
746ad8fb9838845216253cd57b6a41208c1cb766 0.10.0
746ad8fb9838845216253cd57b6a41208c1cb766 debian/0.10.0-1
746ad8fb9838845216253cd57b6a41208c1cb766 centos/0.10.0-1
c82265657b763c988691e31303124fce21d75f04 0.10.1
c82265657b763c988691e31303124fce21d75f04 debian/0.10.1-1
c82265657b763c988691e31303124fce21d75f04 centos/0.10.1-1
70cd0b3f5e37200feece7b54fcbf0cdca294619e 0.10.2
70cd0b3f5e37200feece7b54fcbf0cdca294619e debian/0.10.2-1
70cd0b3f5e37200feece7b54fcbf0cdca294619e centos/0.10.2-1
e9adbbfa204f495bb0d2c1d44196793b7e8e122f 0.10.3
e9adbbfa204f495bb0d2c1d44196793b7e8e122f debian/0.10.3-1
e9adbbfa204f495bb0d2c1d44196793b7e8e122f centos/0.10.3-1
90dce3345ca5326f48e146777890e27588745b8a 0.10.4
90dce3345ca5326f48e146777890e27588745b8a debian/0.10.4-1
90dce3345ca5326f48e146777890e27588745b8a centos/0.10.4-1
141f3f7f71a0f657a8dde902f49a01713b22fbf5 0.10.5
141f3f7f71a0f657a8dde902f49a01713b22fbf5 debian/0.10.5-1
141f3f7f71a0f657a8dde902f49a01713b22fbf5 centos/0.10.5-1
ea897ca9b50b5574cb3a2a60e4b6291121dceb67 0.10.6
ea897ca9b50b5574cb3a2a60e4b6291121dceb67 debian/0.10.6-1
ea897ca9b50b5574cb3a2a60e4b6291121dceb67 centos/0.10.6-1
d5a3933285c5221925b69dd2510b00c042401aa9 0.10.7
d5a3933285c5221925b69dd2510b00c042401aa9 debian/0.10.7-1
d5a3933285c5221925b69dd2510b00c042401aa9 centos/0.10.7-1
49dc73cb88316e973b7c6321685b5c5d2caf4bb7 0.11.0
49dc73cb88316e973b7c6321685b5c5d2caf4bb7 debian/0.11.0-1
49dc73cb88316e973b7c6321685b5c5d2caf4bb7 centos/0.11.0-1
444be45eb7d316772f5f1842e03846cea449ba33 0.11.1
444be45eb7d316772f5f1842e03846cea449ba33 debian/0.11.1-1
444be45eb7d316772f5f1842e03846cea449ba33 centos/0.11.1-1
aa91a791182e91a273af416e976d4c3dbeba0618 0.11.2
aa91a791182e91a273af416e976d4c3dbeba0618 debian/0.11.2-1
aa91a791182e91a273af416e976d4c3dbeba0618 centos/0.11.2-1
e13dad7f482bd328cc3ced3910e9f4ecb96fbfe7 0.11.3
e13dad7f482bd328cc3ced3910e9f4ecb96fbfe7 debian/0.11.3-1
e13dad7f482bd328cc3ced3910e9f4ecb96fbfe7 centos/0.11.3-1
56ecfa566925f64cc35df6fa366e1a4c5b9b9932 0.11.4
56ecfa566925f64cc35df6fa366e1a4c5b9b9932 debian/0.11.4-1
56ecfa566925f64cc35df6fa366e1a4c5b9b9932 centos/0.11.4-1
4d31d5d82e35f43146fdb12a48529bddeaae9aea 0.11.5
4d31d5d82e35f43146fdb12a48529bddeaae9aea debian/0.11.5-1
4d31d5d82e35f43146fdb12a48529bddeaae9aea centos/0.11.5-1
17067f4de8d108a52545e2cc19bcd8d4635fe6ee 0.12.0
17067f4de8d108a52545e2cc19bcd8d4635fe6ee debian/0.12.0-1
17067f4de8d108a52545e2cc19bcd8d4635fe6ee centos/0.12.0-1