[sqlalchemy] SQLAlchemy, PostgreSQL and custom types

2009-10-01 Thread Orca
I have a problem with updating custom types in SQLAlchemy, issue is that when I modify object attributes they are not detected as modified. E/g: # python class to work with class BDelta(object): def __init__(self): self.id = None self.flags = None self.deltas = []

[sqlalchemy] Re: query().all() OK, query().delete() can't locate bind

2009-09-16 Thread Orca
you have to use Session.execute with explicit mapper defined, for some reason session.query.delete/update is not detecting any bindables in statement as it does for select-queries. if your TreeNode Table defined as Tree_Node_Table: