[sqlalchemy] Re: Querying for the existence of an object in the database

2008-04-08 Thread pyplexed
Thanks Michael. The classmethod code worked a treat. I see merge() has changed in the new release of SA. Does this affect the solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to

[sqlalchemy] Re: Querying for the existence of an object in the database

2008-04-01 Thread pyplexed
On Mar 31, 2008, at 12:02 PM, pyplexed wrote: The continuing adventures of a newbie SA user... Could anyone tell me if there is a simple way of setting up a query which takes an object as an argument and checks for the existence of an object in the database? by primary key

[sqlalchemy] Querying for the existence of an object in the database

2008-03-31 Thread pyplexed
The continuing adventures of a newbie SA user... Could anyone tell me if there is a simple way of setting up a query which takes an object as an argument and checks for the existence of an object in the database? I know I can construct a query hard coding attributes to filter on, but I'm sure

[sqlalchemy] Re: Attribute error

2008-03-28 Thread pyplexed
That's fixed it. Thanks very much. On Mar 26, 7:03 pm, Michael Bayer [EMAIL PROTECTED] wrote: On Mar 26, 2008, at 1:34 PM, pyplexed wrote: Hi all, I'm a complete newcomer to SA, and I've tried to adapt an example I found on-line to look a bit more like the problem I'm trying