Re: [SQLObject] unknown column table creation..novice
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-08-19 00:29:21
|
Brian Ray wrote: > Thanks for SQLObject, it's great! > > I have used SQLObject with one project and I am working on my second. Still, > I am rather new to Python and totally new to SQLobject so excuse me if this > question is dumb. > > I am looking for a way to created a table from a list of values. Say I have: > > headers = ['bbd_id', 'co_name1', 'address1', 'address2', 'city', > 'state', 'zip5', 'zip4', 'first_name', 'surname', 'telephone'] class MailList(SQLObject): pass for header in headers: MailList.addColumn(Col(name=header)) -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |