Re: [sqlalchemy] Classmethods with Session and Declarative Syntax

2010-06-16 Thread Robert Sudwarts
Goddit !! Thank you so much!! On 16 June 2010 14:33, Michael Bayer wrote: > > On Jun 16, 2010, at 7:58 AM, Robert Sudwarts wrote: > > Hi, > > I'm having difficulty understanding how to call/create a session to access > a "class method" of a declaratively defined table/object: essentially my >

Re: [sqlalchemy] Classmethods with Session and Declarative Syntax

2010-06-16 Thread Michael Bayer
On Jun 16, 2010, at 7:58 AM, Robert Sudwarts wrote: > Hi, > > I'm having difficulty understanding how to call/create a session to access a > "class method" of a declaratively defined table/object: essentially my > understanding of how session works in this context is at fault... Clearly, > t

[sqlalchemy] Classmethods with Session and Declarative Syntax

2010-06-16 Thread Robert Sudwarts
Hi, I'm having difficulty understanding how to call/create a session to access a "class method" of a declaratively defined table/object: essentially my understanding of how session works in this context is at fault... Clearly, the @classmethod requires a **session** (and I realise that: "declarat