[sqlalchemy] Re: how to assign values to columns of a mapper?

2006-12-19 Thread Michael Bayer
at this point you need to produce a full example that reproduces your issue. --~--~-~--~~~---~--~~ 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

[sqlalchemy] Re: how to assign values to columns of a mapper?

2006-12-18 Thread robert rottermann
Michael Bayer wrote: the error message indicates that there is more than one Session in play. a big reason for this is that people have import sqlalchemy.ext.threadlocal lying around when they dont really want that. thanks for the hint, I do not use threadlocal in any direct way but I am

[sqlalchemy] Re: how to assign values to columns of a mapper?

2006-12-16 Thread Robin Munn
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

[sqlalchemy] Re: how to assign values to columns of a mapper?

2006-12-16 Thread Robin Munn
On 12/16/06, robert rottermann [EMAIL PROTECTED] wrote: more ideas ? robert I've run out of ideas. It might be better to show us snippets from the real code, rather than the pseudocode. As it is, we're just guessing about what your code looks like. And if the pseudocode you showed doesn't

[sqlalchemy] Re: how to assign values to columns of a mapper?

2006-12-16 Thread Michael Bayer
the error message indicates that there is more than one Session in play. a big reason for this is that people have import sqlalchemy.ext.threadlocal lying around when they dont really want that. --~--~-~--~~~---~--~~ You received this message because you are