diff options
author | Jonathan LaCour <jonathan@cleverdevil.org> | 2006-06-30 01:19:52 +0000 |
---|---|---|
committer | Jonathan LaCour <jonathan@cleverdevil.org> | 2006-06-30 01:19:52 +0000 |
commit | a8c2b7b97902fa9dd69a11f696ad2d4e0bf6328b (patch) | |
tree | 049a896f4896ab9ac78bd1cbe92a19b65b1d91c9 /lib/sqlalchemy/ext/activemapper.py | |
parent | 4e3aa8829acfe824ccb6628be4a1f6af8e220349 (diff) | |
download | sqlalchemy-a8c2b7b97902fa9dd69a11f696ad2d4e0bf6328b.tar.gz |
Put back in the foreign-key checking code in process_relationships for
ActiveMapper. It looks like it is required by at least one person, so for
now the code will stay in!
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/activemapper.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sqlalchemy/ext/activemapper.py b/lib/sqlalchemy/ext/activemapper.py index 132c93e75..541bf7812 100644 --- a/lib/sqlalchemy/ext/activemapper.py +++ b/lib/sqlalchemy/ext/activemapper.py @@ -110,11 +110,6 @@ def process_relationships(klass, was_deferred=False): # and make sure that we can find the related tables (they do not # have to be processed yet, just defined), and we defer if we are # not able to find any of the related tables - - # thanks to deferred mapper compilation, this loop should no longer - # be necessary -- however, I will leave it here commented out until - # I get the feeling that its not causing problems for people. - ''' for col in klass.columns: if col.foreign_key is not None: found = False @@ -127,7 +122,6 @@ def process_relationships(klass, was_deferred=False): if not was_deferred: __deferred_classes__.add(klass) defer = True break - ''' # if we are able to find all related and referred to tables, then # we can go ahead and assign the relationships to the class |