[orm-devel] Re: one2many
Diedrich Vorberg
orm-devel@mailman.tux4web.de
Sat, 15 Mar 2003 22:30:33 +0100
>The UPDATE did not work (parentid was not updated) until I made the
>changes to two lines in relationship (around line 351 - lines marked WFB)
>
> updateCommand = "UPDATE %s SET %s=%s WHERE %s IN (%s)" % \
> (self._childClass.relation(),
> self._foreignKeyColumn,
> self._dbObj.primaryKeyValue().format(), # WFB
>changed
> self._childClass.primaryKey, # WFB changed
> join(newKeys, ", "))
Yes, this is correct.
Diedrich
--
_..._ Diedrich Vorberg
.' '.
/ _ _ \ http://www.tux4web.de
| (o)_(o) | info@tux4web.de
\( ) / .---.
//'._.'\ \ / \ Internet Dienstleistungen
// . \ \ \.@-@./ und 'Consulting'.
|| . \ \ /`\_/`\
|\ : / | // _ \\ Linux Rules!
\ `) ' (` /_ | \ )|_
_)``".____,.'"` (_ /`\_`> <_/ \
) )'--'( ( \__/'---'\__/
'---` `---`