On 12/16/06, robert rottermann <[EMAIL PROTECTED]> wrote:
> now I would like to do something like:
> data = readExcelsheet(xx)
> for newRec in data:
>     for fname, fvalue in newRec.items():
>        mapper.c[fname] = fvalue
>    session.save(mapper)
> session.flush()

Each time through the loop, you're assigning new values to the columns
of the *same* object here. I think that may be what's causing your
problem. Try creating a new instance each time through the "for newRec
in data:" loop and see if the problem goes away.

-- 
Robin Munn
[EMAIL PROTECTED]
GPG key 0x4543D577

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to