Użytkownik Sibylle Koczian napisał:
> The second key field is set here, in BizCategoriesForRecipe:
>
> def addLink(self, catid):
>       print "addLink, catid = %d" % catid
>       if self.hasLink(catid):
>               raise ValueError("Category %d already linked to this recipe" % 
> catid)
>       self.new()
>       self.Record.catid = catid
>       self.save()
>               
> And this is the place where the database gets an UPDATE command, not
> INSERT as it should.
>
> All the code is here: http://dabo.codepad.org/X0tRUmVv
>
>

Hmm. Your code works for me.
It looks like the cursor doesn't sense its 'adding' status.
Currently I have no time to look into it a bit deeper,
but maybe today evening I will.
What framework version are you using?

-- 
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to