[sqlalchemy] Re: Thread issue?

2006-11-05 Thread Michael Bayer
OK, i had the impression you were switching the mapper inside of a relation() somehow, but it seems all youre doing is sticking a mapper on a property (i dont quite understand how youd use it ? ) if i understand properly, id just do it this way: class dbPeople(object): def fixRace(self,

[sqlalchemy] Re: Thread issue?

2006-11-05 Thread François Wautier
Thanks for your reply, OK, i had the impression you were switching the mapper inside of a relation() somehow, but it seems all youre doing is sticking a mapper on a property (i dont quite understand how youd use it ? ) I want to use it like this fixRace(dbPeople, myrace)

[sqlalchemy] Re: Thread issue?

2006-11-04 Thread François Wautier
Hi Michael, Thanks for your reply. First an apology, my program is now working It was a silly mistake... Second, I agree that what I am doing is not the most elegant thing I've ever done... .to put it mildly... Yet, in most cases, the fixRace function will only be run once at startup