Commit 59f62470 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Merge with 0.39 "branch"

......@@ -86,6 +86,15 @@ c29581b085c1c03066b26876f9dcfe6784225346 yams-debian-version-0.39.0-1
c29581b085c1c03066b26876f9dcfe6784225346 yams-centos-version-0.39.0-1
b8ac32c3a3d4572ed66fec58455e4e4caa5e6ec1 yams-version-0.39.1
4d1b7b4350356087432994d2138d01eaafeb9092 yams-debian-version-0.39.1-1
a351ddeea7795cca1f796299e89164daea2be985 0.39.2
a351ddeea7795cca1f796299e89164daea2be985 debian/0.39.2-1
a351ddeea7795cca1f796299e89164daea2be985 centos/0.39.2-1
d6c6e1bcde6f5b6c76c06784a3a881a4552f64e6 0.39.3
d6c6e1bcde6f5b6c76c06784a3a881a4552f64e6 debian/0.39.3-1
d6c6e1bcde6f5b6c76c06784a3a881a4552f64e6 centos/0.39.3-1
bc0cedd1f722e6a1e0f89b9fcb6162d8ef4ae371 0.39.4
bc0cedd1f722e6a1e0f89b9fcb6162d8ef4ae371 debian/0.39.4-1
bc0cedd1f722e6a1e0f89b9fcb6162d8ef4ae371 centos/0.39.4-1
c362ae864e7684fb462e8b80139690db1a8dcf79 yams-version-0.40.0
c362ae864e7684fb462e8b80139690db1a8dcf79 yams-debian-version-0.40.0-1
c362ae864e7684fb462e8b80139690db1a8dcf79 yams-centos-version-0.40.0-1
......
......@@ -48,6 +48,12 @@ ChangeLog for yams
* Source compatibility with python 2.6+ and 3.3+ (#267910)
2015-07-17 -- 0.39.3
* allow calling unicode/str on a validation error before its translation
(#286709)
2015-07-07 -- 0.39.2
* provide proper comparison and hashability between constraints (#294378)
2014-03-28 -- 0.39.1
* [schema] don't raise an error when some infered relation is overwritten
......
......@@ -47,6 +47,24 @@ yams (0.40.0-1) unstable; urgency=low
-- Julien Cristau <julien.cristau@logilab.fr> Wed, 05 Nov 2014 11:52:21 +0100
yams (0.39.4-1) unstable; urgency=medium
* new upstream release
-- Sylvain Thenault <sylvain.thenault@logilab.fr> Wed, 30 Mar 2016 17:21:07 +0200
yams (0.39.3-1) unstable; urgency=medium
* new upstream release
-- Julien Cristau <julien.cristau@logilab.fr> Fri, 17 Jul 2015 14:58:20 +0200
yams (0.39.2-1) unstable; urgency=medium
* new upstream release
-- Julien Cristau <julien.cristau@logilab.fr> Tue, 07 Jul 2015 13:20:00 +0200
yams (0.39.1-1) unstable; urgency=low
* new upstream release
......
......@@ -139,6 +139,16 @@ class BaseConstraint(object):
return NotImplemented
def __eq__(self, other):
return (self.type(), self.serialize()) == (other.type(), other.serialize())
def __ne__(self, other):
return not self == other
def __hash__(self):
return hash((self.type(), self.serialize()))
# possible constraints ########################################################
class UniqueConstraint(BaseConstraint):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment