From: Mike Bayer Date: Sun, 18 Nov 2012 03:08:14 +0000 (-0500) Subject: - add HSTORE X-Git-Tag: rel_0_8_0b2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=713a1d3b241d23873ac8c2edeb81e073afd2db87;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add HSTORE - this was a mistake in mutable --- diff --git a/doc/build/dialects/postgresql.rst b/doc/build/dialects/postgresql.rst index 072469406d..3943f865a1 100644 --- a/doc/build/dialects/postgresql.rst +++ b/doc/build/dialects/postgresql.rst @@ -49,6 +49,9 @@ construction arguments, are as follows: :members: __init__, create, drop :show-inheritance: +.. autoclass:: HSTORE + :show-inheritance: + .. autoclass:: INET :members: __init__ :show-inheritance: diff --git a/lib/sqlalchemy/ext/mutable.py b/lib/sqlalchemy/ext/mutable.py index fcc493875f..877a732174 100644 --- a/lib/sqlalchemy/ext/mutable.py +++ b/lib/sqlalchemy/ext/mutable.py @@ -460,9 +460,6 @@ class Mutable(MutableBase): """ - if not isinstance(sqltype, types.TypeEngine): - raise exc.ArgumentError("Type instance expected, got %s" % sqltype) - def listen_for_type(mapper, class_): for prop in mapper.iterate_properties: if hasattr(prop, 'columns'):