[sqlalchemy] Re: How do I Instantiate a class with an Auto-assigned Key ID

2008-02-04 Thread King Simon-NFHD78
None, and the 'Saving Objects' session, where it becomes 1. Hope that helps, Simon -Original Message- From: sqlalchemy@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jdcman Sent: 04 February 2008 03:04 To: sqlalchemy Subject: [sqlalchemy] Re: How do I Instantiate a

[sqlalchemy] Re: How do I Instantiate a class with an Auto-assigned Key ID

2008-02-04 Thread Jorge Godoy
jdcman wrote: > As I add records, I want the ID to Auto Increment. When you say > "define a constructor for your class which does not require an ID", > but I REQUIRE an ID, I also require the ID to increment when I add > new record. You went on to say "SQLALchemy has no constructor > requir

[sqlalchemy] Re: How do I Instantiate a class with an Auto-assigned Key ID

2008-02-03 Thread jdcman
Ok, so can you please tell me how I can make a class that AutoIncrements the ID automatically whenever I need to make a new record let me explain... As I add records, I want the ID to Auto Increment. When you say "define a constructor for your class which does not require an ID", but I

[sqlalchemy] Re: How do I Instantiate a class with an Auto-assigned Key ID

2008-02-03 Thread Michael Bayer
jdcman wrote: > > our members table has an ID as the primary key with an auto-assigned > key ID. > > When we create the class it is instantiated with the ID and also > returns an ID. > > obviously if we provide an ID it conflicts with the auto-generated ID. > and if we don't provide an ID it says

[sqlalchemy] Re: How do I Instantiate a class with an Auto-assigned Key ID

2008-02-02 Thread John Draper
I really don't want my list mail going to my gmail account. How can I get on this list and have it send to an email I have specifically setup to receive list mail, is this possible? John On Feb 2, 2008 9:35 PM, jdcman <[EMAIL PROTECTED]> wrote: > > our members table has an ID as the primary k