Hello Ivan, as I remeber if you use a string type column as id its up to you to insert a new unique id.
some thing like this: new_user=ts_user= (username="myunique_name") because SQLObect has no idea how your id logic works. have fun Regards Lutz On Tue, 6 Jun 2006 13:40:17 +0200 Ivan Horvath <[EMAIL PROTECTED]> wrote: > Dear sqlobject-discuss, > > finally i was able to download the latest version from svn. > the column definition is solved. > but i have problem to insert a new row in a table. > > ts_project(title="project1") > command fails with > Traceback (most recent call last): > File "D:\alco\python\admin\timeshit.py", line 58, in ? > ts_project(title=u"ivan project") > File > "c:\python24\lib\site-packages\sqlobject-trunk\sqlobject\declarative.py", > line 94, in _wrapper > return fn(self, *args, **kwargs) > File "c:\python24\lib\site-packages\sqlobject-trunk\sqlobject\main.py", > line 1212, in __init__ > self._create(id, **kw) > File "c:\python24\lib\site-packages\sqlobject-trunk\sqlobject\main.py", > line 1238, in _create > self.set(**kw) > TypeError: set() keywords must be strings > > exception. > what does it mean? > > -- > Best regards, > Ivan Horvath > Chief Programmer > > Alcatel ISD > PMS 2000 Product Team > > H-1116, Budapest > Kondorfa u. 10. > Tel.: +36 1 209 9546 > Fax.: +36 1 209 9599 > Mobil: +36 30 257 0235 > VOIP: +49 511 676 478010 > mailto:[EMAIL PROTECTED] > > Anyone who has never made a mistake has never tried anything new. > > /Albert Einstein/ > > > > _______________________________________________ > sqlobject-discuss mailing list > sqlobject-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss