[sqlalchemy] Re: Questions about session

2010-06-05 Thread Az
Cheers! Creating a new instance of my mapped class and settings, manually. Gotcha. I think this will be an easier solution for me. Nah, I'm not in a web framework. Additional Q: +++ Currently, my database is being stored in memory and it's fine like that since a) my data isn't very expansive

Re: [sqlalchemy] Re: Questions about session

2010-06-05 Thread Conor
On 06/05/2010 08:06 PM, Az wrote: Cheers! Creating a new instance of my mapped class and settings, manually. Gotcha. I think this will be an easier solution for me. Nah, I'm not in a web framework. Additional Q: +++ Currently, my database is being stored in memory and it's fine like

[sqlalchemy] changing polymorphic class

2010-06-05 Thread avdd
Is there a reason for preventing updates to the polymorphic_on column? I tried removing that branch (mapper.py:1628) and the mapper tests all pass. (although there are problems with other tests that are unaffected by this change) a. -- You received this message because you are subscribed to

Re: [sqlalchemy] changing polymorphic class

2010-06-05 Thread Michael Bayer
On Jun 5, 2010, at 11:56 PM, avdd wrote: Is there a reason for preventing updates to the polymorphic_on column? I tried removing that branch (mapper.py:1628) and the mapper tests all pass. (although there are problems with other tests that are unaffected by this change) The class of the

[sqlalchemy] Re: Questions about session

2010-06-05 Thread Az
This will probably help: def addToTable(): Very simple SQLAlchemy function that populates the Student, Project and Supervisor tables. for student in students.itervalues(): session.add(student) session.flush() for project in

[sqlalchemy] Re: Questions about session

2010-06-05 Thread Az
Also adding a bit here: My Student (this one is mapped) class looks like this: class Student(object): def __init__(self, ee_id, name, stream_id, overall_proby): self.ee_id = ee_id self.name = name self.stream_id = stream_id