[sqlalchemy] Re: single Session, queries against multiple classes issues

2006-12-19 Thread Alan Franzoni
Just a small update. First, my system: Ubuntu Edgy, SQLAlchemy 0.3.3, psycopg 2.0.5, postgres 8.1.4, python2.5. I've realized this issue is highly strange, it seems related to something I can't understand. I'm using a custom metaclass system to map everything from my metadata to objects. If I

[sqlalchemy] Re: single Session, queries against multiple classes issues

2006-12-19 Thread Michael Bayer
im sure if you put a session.clear() in between those two statements then they both would independently work. since the instances() step of a query does not re-instantiate or re-populate instances that are already present in the session, there is probably some difference in loading that is

[sqlalchemy] Re: single Session, queries against multiple classes issues

2006-12-19 Thread Alan Franzoni
Yes, you're right, even tough this doesn't help (I need all objects to be in the same session) and I think I've just found out what raises the problem. The problem is my MapperExtension. I wanted to call __init__ on my instances in order to initialize some meta-properties which work on a