[storm] Database integrity error (non unique primary key) when adding objects all referring other objects

Gustavo Niemeyer gustavo at niemeyer.net
Mon Dec 3 16:33:39 GMT 2007


Hello 希增毛,

(...)
> Could you help me?  Thanks a lot in advance.

class B(object):
    (...)
    a_id = Int()
    a = Reference(id, A.id)

You want a_id as the first argument here, rather than id.

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the storm mailing list