diff options
author | Gaëtan de Menten <gdementen@gmail.com> | 2007-04-27 09:50:00 +0000 |
---|---|---|
committer | Gaëtan de Menten <gdementen@gmail.com> | 2007-04-27 09:50:00 +0000 |
commit | 732bc9ecf08b69ca688638d40841fb128e7b5417 (patch) | |
tree | eab1bf34fe16cf33b963522e116d6c0f955f4b01 /lib/sqlalchemy/ext/activemapper.py | |
parent | 6a30f0ee3701172c37f03306731e4b14fe6acffb (diff) | |
download | sqlalchemy-732bc9ecf08b69ca688638d40841fb128e7b5417.tar.gz |
correct typo-equivalent mistakes in some comments/docstrings
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/activemapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/activemapper.py b/lib/sqlalchemy/ext/activemapper.py index bcfbac632..004caf849 100644 --- a/lib/sqlalchemy/ext/activemapper.py +++ b/lib/sqlalchemy/ext/activemapper.py @@ -271,11 +271,11 @@ class ActiveMapperMeta(type): cls.table = Table(table_name, _metadata, autoload=True, **table_opts) cls.columns = cls.table._columns - # check for inheritence if version_id_col is not None: version_id_col_object = getattr(cls.table.c, version_id_col, None) assert(version_id_col_object is not None, "version_id_col (%s) does not exist." % version_id_col) + # check for inheritence if hasattr(bases[0], "mapping"): cls._base_mapper= bases[0].mapper assign_mapper(objectstore.context, cls, cls.table, |