From: Gavin <bra...@ri...> - 2004-05-09 13:27:41
|
With the following code: import streamcast streamcast.StreamSources(stream_name='Enemy Combatant Radio',stream_source='http://radio.indymedia.org:8001/sf-hifi.mp3',start_date='2004-05-09 23:25:00',end_date='2004-05-09 23:30:00') I get this error: TypeError: __new__() got an unexpected keyword argument 'stream_name' The StreamSource class: class StreamSources(SQLObject.SQLObject): db = Database() _connection = SQLObject.MySQLConnection(db=db.name,user=db.user,passwd=db.password) _style = SQLObject.Style() _table = 'streamcast' stream_name = SQLObject.StringCol(length=150,notNull=True) stream_source = SQLObject.StringCol(length=255,notNull=True) start_date = SQLObject.DateTimeCol(notNull=True) end_date = SQLObject.DateTimeCol(notNull=True) default_stream = SQLObject.BoolCol() - Gavin |