On Tuesday 08 January 2008 7:14 am, johnf wrote:
> On Tuesday 08 January 2008 04:42:47 am Simen Haugen wrote:
> > I just cannot understand why this won't work, but I don't use much
> > bizobjs, so its probably my fault :)
> >
> > All three fields are primary keys.
>
> Would this be one primary field and two unique fields?
>
> > If I use bizobj.new() and uses a grid to edit the values, then
> > saveAll(), the changed rows is [None, None, None]... And of course gives
> > an error when trying to move thru the rows.
> >
> > Some other tests:
> >
> > # Try to save
> >
> > >>> b = self.getBizobj()
> > >>> b.getDataSet()
> >
> > ()
> >
> > >>> b.new()
> > >>> b.getDataSet()
> >
> > ({'project': u'reshn011', 'bnummer': u'', 'telefonval': u''},)
> >
> > >>> b.save() # Hmmm.. no error at least
>
> Did you check the database to see if your data was saved?
>
> > >>> b.saveAll()
>
> save() calls saveAll() on your primary bizObject.Actually looking at the code, save() from a bizobj calls saveAll() of the child objs if the bizobj.save() is successful. The behavior you describe happens when you call save() from the form. -- Adrian Klaver [EMAIL PROTECTED] _______________________________________________ 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/dabo-users/[EMAIL PROTECTED]
