diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-10-02 20:24:04 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-10-02 20:24:04 +0000 |
| commit | 691221affe053d404f3c8a2f77779d9ec6bf25ff (patch) | |
| tree | b6ea3bed0820ad6a55371c26c1dd352925c2a633 /lib/sqlalchemy/mapper.py | |
| parent | 24fe959df62d960ab71674c19cd473cd128e9a5a (diff) | |
| download | sqlalchemy-691221affe053d404f3c8a2f77779d9ec6bf25ff.tar.gz | |
Diffstat (limited to 'lib/sqlalchemy/mapper.py')
| -rw-r--r-- | lib/sqlalchemy/mapper.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sqlalchemy/mapper.py b/lib/sqlalchemy/mapper.py index b7e87eb04..7feb24439 100644 --- a/lib/sqlalchemy/mapper.py +++ b/lib/sqlalchemy/mapper.py @@ -778,15 +778,11 @@ class PropertyLoader(MapperProperty): clearkeys = True for child in childlist.deleted_items(): self.primaryjoin.accept_visitor(setter) - - #print self.mapper.table.name + " postdep " + repr([str(v) for v in deplist.map.values()]) + " process_dep isdelete " + repr(delete) def _sync_foreign_keys(self, binary, obj, child, associationrow, clearkeys): """given a binary clause with an = operator joining two table columns, synchronizes the values of the corresponding attributes within a parent object and a child object, or the attributes within an an "association row" that represents an association link between the 'parent' and 'child' object.""" - if obj is child: - raise "wha?" if binary.operator == '=': if binary.left.table == binary.right.table: if binary.right is self.foreignkey: @@ -796,8 +792,6 @@ class PropertyLoader(MapperProperty): else: raise "Cant determine direction for relationship %s = %s" % (binary.left.fullname, binary.right.fullname) self.mapper._setattrbycolumn(child, self.foreignkey, self.parent._getattrbycolumn(obj, source)) - print "set " + repr(id(child)) + child.__dict__['name'] + ":" + self.foreignkey.key + " to " + repr(id(obj)) + obj.__dict__['name'] + ":" + source.key - #+ "\n" + repr(child.__dict__) else: colmap = {binary.left.table : binary.left, binary.right.table : binary.right} if colmap.has_key(self.parent.primarytable) and colmap.has_key(self.target): |
