Re: [SQLObject] Problem with RelatedJoin

2007-05-13 Thread TiNo
Yes, it works. instead of: Photo(filename="bla.jpg",keywords="k1,k2") I now do: p = Photo(filename="bla.jpg") p.keywords = "k1,k2" and that works. 2007/5/13, Oleg Broytmann <[EMAIL PROTECTED]>: On Sun, May 13, 2007 at 02:53:11PM +0200, TiNo wrote: > I found out what caused the error thou

Re: [SQLObject] Problem with RelatedJoin

2007-05-13 Thread Oleg Broytmann
On Sun, May 13, 2007 at 02:53:11PM +0200, TiNo wrote: > I found out what caused the error though.While debugging I discovered that > the the Photo gets passed on as a uninstantiated class. So I have to create > the photo first, and then add the keyword! Does it work now? Oleg. -- Oleg Br

Re: [SQLObject] Problem with RelatedJoin

2007-05-13 Thread TiNo
Sorry, I copied the wrong traceback. The only difference though is that last line you quoted. it is File "F:\Dev\Python\Photon\photon\model.py", line 53, in _set_keywords self.addKeyword (ref) I tried passing the id of the keyword as well (1), but that gave me the same error... I found out w

Re: [SQLObject] Problem with RelatedJoin

2007-05-12 Thread Oleg Broytmann
On Sat, May 12, 2007 at 07:40:04PM +0200, TiNo wrote: > File "F:\Dev\Python\Photon\photon\model.py", line 52, in > _set_keywords >self.addKeyword(1) What is it? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they j

[SQLObject] Problem with RelatedJoin

2007-05-12 Thread TiNo
Hi, I have the following model (in turbogears, but I think the problem is pure SQLObject) (only relevant parts copied): class Photo(SQLObject): filename = StringCol(length=30,alternateID=True) keywords = RelatedJoin('Keyword')