]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Got the unit tests running again, apart from the two that were not working in
authorJonathan LaCour <jonathan@cleverdevil.org>
Sun, 23 Apr 2006 21:41:36 +0000 (21:41 +0000)
committerJonathan LaCour <jonathan@cleverdevil.org>
Sun, 23 Apr 2006 21:41:36 +0000 (21:41 +0000)
commite008839e81e377e7a82fdfe9778fe849dd212e6f
tree7bd16566c25393458557ea26b1ddc78e3477fd76
parenta8fe116387e075395b61f1ae2a09551d174467a0
Got the unit tests running again, apart from the two that were not working in
the first place.  The changes to process_relationships and to sqlachemy itself
were causing a double 'assign_mapper' call to cause issues.  Now, we basically
defer calling assign_mapper until process_relationships in cases where there
are defined relationships.

Also, I moved ActiveMapper to always use the default engine, as there were a
lot of hacks inside ActiveMapper to allow for engine swapping.  The use of the
default engine and the "global_connect" functionality significantly improves
the usability of ActiveMapper.

ActiveMapper will be getting a bit of a refactor/cleanup at some point in the
nearish future, as it has drifted a bit to complexity with the addition of some
features.  For now, this should do the trick!
lib/sqlalchemy/ext/activemapper.py
test/activemapper.py