Content-Type: multipart/alternative; x-avg-checked=avg-ok-17E7639E; boundary="=====================_20383468==.ALT" --=====================_20383468==.ALT Content-Type: text/plain; x-avg-checked=avg-ok-17E7639E; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit Hi all - newbie here with a stupid question: In my Postgres DB, I've got this table: create table Client ( ClientID int default nextval('sq_Client_ClientID') primary key, ClientCode varchar(3) unique not null , ClientName varchar(50) unique not null , Comments varchar(1000) null , DateCreated timestamp default 'now' not null ); in Python, I'm trying this: import sqlobject from sqlobject import * conn = sqlobject.connectionForURI("postgres://me@localhost/mydb") class Client(SQLObject): _connection = conn # We may be able to autogenerate by using # _fromDatabase = true ClientCode = StringCol(length=3): ClientName = StringCol(length=50) Comments = StringCol(length=1000) DateCreated = DateTimeCol() But I'm getting "Client() did not get expected keyword argument Comments" back from Python. Any ideas? Thanks in advance, B. At 10:08 AM 12/23/2004, you wrote: >Welcome to the sqlobject-discuss@lists.sourceforge.net mailing list! > >To post to this list, send your email to: > > sqlobject-discuss@lists.sourceforge.net > >General information about the mailing list is at: > > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > >If you ever want to unsubscribe or change your options (eg, switch to >or from digest mode, change your password, etc.), visit your >subscription page at: > > >https://lists.sourceforge.net/lists/options/sqlobject-discuss/sqlobject%40dot-not.com > > >You can also make such adjustments via email by sending a message to: > > sqlobject-discuss-request@lists.sourceforge.net > >with the word `help' in the subject or body (don't include the >quotes), and you will get back a message with instructions. > >You must know your password to change your options (including changing >the password, itself) or to unsubscribe. It is: > > sqlobject > >If you forget your password, don't worry, you will receive a monthly >reminder telling you what all your lists.sourceforge.net mailing list >passwords are, and how to unsubscribe or change your options. There >is also a button on your options page that will email your current >password to you. > >You may also have your password mailed to you automatically off of the >Web page noted above. > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.811 / Virus Database: 552 - Release Date: 12/13/2004 --=====================_20383468==.ALT Content-Type: text/html; x-avg-checked=avg-ok-17E7639E; charset=us-ascii Content-Transfer-Encoding: 8bit Hi all - newbie here with a stupid question:

In my Postgres DB, I've got this table:

create table Client (
        ClientID int default nextval('sq_Client_ClientID') primary key,
        ClientCode varchar(3) unique not null ,
        ClientName varchar(50) unique not null ,
        Comments varchar(1000) null ,
        DateCreated timestamp default 'now' not null
);

in Python, I'm trying this:

import sqlobject
from sqlobject import *

conn = sqlobject.connectionForURI("postgres://me@localhost/mydb")

class Client(SQLObject):
    _connection = conn
    # We may be able to autogenerate by using
    # _fromDatabase = true
    ClientCode = StringCol(length=3):
    ClientName = StringCol(length=50)
    Comments = StringCol(length=1000)
    DateCreated = DateTimeCol()


But I'm getting
"Client() did not get expected keyword argument Comments"
back from Python.

Any ideas?

Thanks in advance,
B.


At 10:08 AM 12/23/2004, you wrote:

Welcome to the sqlobject-discuss@lists.sourceforge.net mailing list!

To post to this list, send your email to:

  sqlobject-discuss@lists.sourceforge.net

General information about the mailing list is at:

  https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  https://lists.sourceforge.net/lists/options/sqlobject-discuss/sqlobject%40dot-not.com


You can also make such adjustments via email by sending a message to:

  sqlobject-discuss-request@lists.sourceforge.net

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe.  It is:

  sqlobject

If you forget your password, don't worry, you will receive a monthly
reminder telling you what all your lists.sourceforge.net mailing list
passwords are, and how to unsubscribe or change your options.  There
is also a button on your options page that will email your current
password to you.

You may also have your password mailed to you automatically off of the
Web page noted above.




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.811 / Virus Database: 552 - Release Date: 12/13/2004
--=====================_20383468==.ALT--