[sqlalchemy] Hey, try out Flock

2008-04-29 Thread [EMAIL PROTECTED]
Hello,I'm emailing you about Flock. I'm now using Flock as my default browser, and I love what it's done for my whole Web experience. Flock is a social web browser that uniquely pulls together the people, photos, videos and websites I care about. Check it out, I think you're really going to

[sqlalchemy] Re: Concrete inheritance woes

2008-04-29 Thread Gaetan de Menten
On Mon, Apr 28, 2008 at 10:33 PM, Michael Bayer [EMAIL PROTECTED] wrote: pjoin = polymorphic_union(...) pjoin2 = polymorphic_union(...) employee_mapper = mapper(Employee, pjoin, polymorphic_on=pjoin.c.type) manager_mapper = mapper(Manager, managers_table, inherits=employee_mapper,

[sqlalchemy] Re: Concrete inheritance woes

2008-04-29 Thread Gaetan de Menten
On Tue, Apr 29, 2008 at 12:11 PM, Gaetan de Menten [EMAIL PROTECTED] wrote: On Mon, Apr 28, 2008 at 10:33 PM, Michael Bayer [EMAIL PROTECTED] wrote: In any case the unit tests which you were working from (im guessing test/orm/inheritance/concrete.py) should be patched to include this

[sqlalchemy] association proxy error: stale association proxy

2008-04-29 Thread Paul K
The following code duplicates a situation I'm seeing with the association proxy. There are at least two ways I can avoid having the error happen. But since I wasn't sure if the error is a usage error, I wanted to post here first before implementing my work around. One work around for the test

[sqlalchemy] Re: association proxy error: stale association proxy

2008-04-29 Thread Paul K
I understand why I'm seeing the error. But should the user really be required to keep the parent around in a variable? I would have thought that the session would be tracking each successive changes. --~--~-~--~~~---~--~~ You received this message because you are

[sqlalchemy] Re: association proxy error: stale association proxy

2008-04-29 Thread jason kirtland
Paul K wrote: The following code duplicates a situation I'm seeing with the association proxy. There are at least two ways I can avoid having the error happen. But since I wasn't sure if the error is a usage error, I wanted to post here first before implementing my work around. One work

[sqlalchemy] Re: Concrete inheritance woes

2008-04-29 Thread az
g'day Gaetan u could try my tests and play with DB_inheritance=concrete to see my experience so far with dbcook (not documented i know but works4me) and its tests. also u can look up the mailgroup history for my own concrete-related complaints... most of them have hit unimplemented parts of

[sqlalchemy] Re: Concrete inheritance woes

2008-04-29 Thread Michael Bayer
On Apr 29, 2008, at 2:32 PM, [EMAIL PROTECTED] wrote: btw, if Mike is about delving into all this now, i think i have some time to look around it, at least move onto with_polymorphic. if you're going to deal with future functionality, go work with the user_defined_state branch for now,

[sqlalchemy] Re: association proxy error: stale association proxy

2008-04-29 Thread Paul K
Thanks. That fixed what I was seeing. Paul Kippes On Apr 29, 1:49 pm, jason kirtland [EMAIL PROTECTED] wrote: Paul K wrote: The following code duplicates a situation I'm seeing with the association proxy. There are at least two ways I can avoid having the error happen. But since I

[sqlalchemy] is MapperExtension.after_update() called before the UPDATE is issued to the DB?

2008-04-29 Thread David Bonner
Hi, I'm trying to write a mapper extension that notifies a daemon about changes made to the DB that it needs to care about. But it looks like after_update() is actually getting called before the UPDATE is sent to the db. Not knowing a better way to debug it, I just threw a pdb.set_trace() into

[sqlalchemy] Re: subquery and inheritance

2008-04-29 Thread kris
If I add a simple correlate feature to Query in 0.5, you can use the raw Table object to bypass the ORM meaning of Dataset and Base. the query above is not quite complete but I can get an approximation like this: Is this functionality available currently or am I waiting for sqlalchemy 0.5? If I